[core] s/SharedTexture/PooledTexture/
This commit is contained in:
@@ -130,7 +130,7 @@ TEST(GLObject, TexturePool) {
|
||||
|
||||
mbgl::gl::TexturePool pool;
|
||||
|
||||
std::vector<mbgl::gl::SharedTexture> ids;
|
||||
std::vector<mbgl::gl::PooledTexture> ids;
|
||||
|
||||
// Fill an entire texture pool.
|
||||
for (auto i = 0; i != mbgl::gl::TextureMax; ++i) {
|
||||
@@ -149,7 +149,7 @@ TEST(GLObject, TexturePool) {
|
||||
|
||||
// Trigger a new texture pool creation.
|
||||
{
|
||||
mbgl::gl::SharedTexture id = pool.acquireTexture(store);
|
||||
mbgl::gl::PooledTexture id = pool.acquireTexture(store);
|
||||
EXPECT_EQ(id, mbgl::gl::TextureMax + 1);
|
||||
EXPECT_TRUE(store.empty());
|
||||
|
||||
@@ -163,7 +163,7 @@ TEST(GLObject, TexturePool) {
|
||||
}
|
||||
|
||||
// First pool is still full, thus creating a new pool.
|
||||
mbgl::gl::SharedTexture id1 = pool.acquireTexture(store);
|
||||
mbgl::gl::PooledTexture id1 = pool.acquireTexture(store);
|
||||
EXPECT_GT(id1.get(), mbgl::gl::TextureMax);
|
||||
EXPECT_TRUE(store.empty());
|
||||
|
||||
@@ -175,7 +175,7 @@ TEST(GLObject, TexturePool) {
|
||||
EXPECT_TRUE(store.empty());
|
||||
|
||||
// The first pool is now gone, the next pool is now in use.
|
||||
mbgl::gl::SharedTexture id2 = pool.acquireTexture(store);
|
||||
mbgl::gl::PooledTexture id2 = pool.acquireTexture(store);
|
||||
EXPECT_GT(id2.get(), id1.get());
|
||||
|
||||
id2.reset();
|
||||
|
||||
Reference in New Issue
Block a user