summaryrefslogtreecommitdiff
path: root/test/gl
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2016-06-07 22:42:18 +0300
committerBruno de Oliveira Abinader <bruno@mapbox.com>2016-06-07 22:42:18 +0300
commitcfac92460675034dca5a134173d9b48f64b75f7e (patch)
tree31fd7053350fcd95ccebbed43d66d50f761d6f07 /test/gl
parent20fe1d2be4302ce1d6b604d185068c069c9345ad (diff)
downloadqtlocation-mapboxgl-cfac92460675034dca5a134173d9b48f64b75f7e.tar.gz
[core] s/SharedTexture/PooledTexture/
Diffstat (limited to 'test/gl')
-rw-r--r--test/gl/object.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/gl/object.cpp b/test/gl/object.cpp
index 1ed2bc91d6..f2b21ec9f4 100644
--- a/test/gl/object.cpp
+++ b/test/gl/object.cpp
@@ -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();