summaryrefslogtreecommitdiffstats
path: root/cc/test
diff options
context:
space:
mode:
Diffstat (limited to 'cc/test')
-rw-r--r--cc/test/tiled_layer_test_common.cc12
-rw-r--r--cc/test/tiled_layer_test_common.h8
2 files changed, 10 insertions, 10 deletions
diff --git a/cc/test/tiled_layer_test_common.cc b/cc/test/tiled_layer_test_common.cc
index 3467e22..5f6a0a2 100644
--- a/cc/test/tiled_layer_test_common.cc
+++ b/cc/test/tiled_layer_test_common.cc
@@ -10,19 +10,19 @@ using namespace cc;
namespace WebKitTests {
-FakeLayerUpdater::Texture::Texture(FakeLayerUpdater* layer, scoped_ptr<PrioritizedTexture> texture)
- : LayerUpdater::Texture(texture.Pass())
+FakeLayerUpdater::Resource::Resource(FakeLayerUpdater* layer, scoped_ptr<PrioritizedTexture> texture)
+ : LayerUpdater::Resource(texture.Pass())
, m_layer(layer)
{
m_bitmap.setConfig(SkBitmap::kARGB_8888_Config, 10, 10);
m_bitmap.allocPixels();
}
-FakeLayerUpdater::Texture::~Texture()
+FakeLayerUpdater::Resource::~Resource()
{
}
-void FakeLayerUpdater::Texture::update(TextureUpdateQueue& queue, const IntRect&, const IntSize&, bool partialUpdate, RenderingStats&)
+void FakeLayerUpdater::Resource::update(TextureUpdateQueue& queue, const IntRect&, const IntSize&, bool partialUpdate, RenderingStats&)
{
const IntRect rect(0, 0, 10, 10);
ResourceUpdate upload = ResourceUpdate::Create(
@@ -63,9 +63,9 @@ void FakeLayerUpdater::setRectToInvalidate(const IntRect& rect, FakeTiledLayer*
m_layer = layer;
}
-scoped_ptr<LayerUpdater::Texture> FakeLayerUpdater::createTexture(PrioritizedTextureManager* manager)
+scoped_ptr<LayerUpdater::Resource> FakeLayerUpdater::createResource(PrioritizedTextureManager* manager)
{
- return scoped_ptr<LayerUpdater::Texture>(new Texture(this, PrioritizedTexture::create(manager)));
+ return scoped_ptr<LayerUpdater::Resource>(new Resource(this, PrioritizedTexture::create(manager)));
}
FakeTiledLayerImpl::FakeTiledLayerImpl(int id)
diff --git a/cc/test/tiled_layer_test_common.h b/cc/test/tiled_layer_test_common.h
index 6f27a67..bcb5909 100644
--- a/cc/test/tiled_layer_test_common.h
+++ b/cc/test/tiled_layer_test_common.h
@@ -23,10 +23,10 @@ class FakeTiledLayer;
class FakeLayerUpdater : public cc::LayerUpdater {
public:
- class Texture : public cc::LayerUpdater::Texture {
+ class Resource : public cc::LayerUpdater::Resource {
public:
- Texture(FakeLayerUpdater*, scoped_ptr<cc::PrioritizedTexture>);
- virtual ~Texture();
+ Resource(FakeLayerUpdater*, scoped_ptr<cc::PrioritizedTexture>);
+ virtual ~Resource();
virtual void update(cc::TextureUpdateQueue&, const cc::IntRect&, const cc::IntSize&, bool, cc::RenderingStats&) OVERRIDE;
@@ -37,7 +37,7 @@ public:
FakeLayerUpdater();
- virtual scoped_ptr<cc::LayerUpdater::Texture> createTexture(cc::PrioritizedTextureManager*) OVERRIDE;
+ virtual scoped_ptr<cc::LayerUpdater::Resource> createResource(cc::PrioritizedTextureManager*) OVERRIDE;
virtual void prepareToUpdate(const cc::IntRect& contentRect, const cc::IntSize&, float, float, cc::IntRect& resultingOpaqueRect, cc::RenderingStats&) OVERRIDE;
// Sets the rect to invalidate during the next call to prepareToUpdate(). After the next