summaryrefslogtreecommitdiffstats
path: root/cc/test/tiled_layer_test_common.cc
diff options
context:
space:
mode:
authorreveman@google.com <reveman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-23 18:34:51 +0000
committerreveman@google.com <reveman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-23 18:34:51 +0000
commit64d8d39667043c562e0e1b0384c1e662b1accfc1 (patch)
tree458a6d9ce8fdef0b56d56d9b8840c6bc17ae5d43 /cc/test/tiled_layer_test_common.cc
parent589029cb1163bf74ae28b5ba7880fac6b9d099c6 (diff)
downloadchromium_src-64d8d39667043c562e0e1b0384c1e662b1accfc1.zip
chromium_src-64d8d39667043c562e0e1b0384c1e662b1accfc1.tar.gz
chromium_src-64d8d39667043c562e0e1b0384c1e662b1accfc1.tar.bz2
cc: Rename LayerTextureUpdater to LayerUpdater.
sed -e ' s/TextureUpdater/Updater/g s/textureUpdater/updater/g s/texture_updater\.h/updater.h/g s/texture_updater\.cc/updater.cc/g s/TEXTURE_UPDATER_H_/UPDATER_H_/g ' BUG= TEST=cc_unittests Review URL: https://codereview.chromium.org/11231082 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163615 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/tiled_layer_test_common.cc')
-rw-r--r--cc/test/tiled_layer_test_common.cc26
1 files changed, 13 insertions, 13 deletions
diff --git a/cc/test/tiled_layer_test_common.cc b/cc/test/tiled_layer_test_common.cc
index ad9ef2e..3467e22 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 {
-FakeLayerTextureUpdater::Texture::Texture(FakeLayerTextureUpdater* layer, scoped_ptr<PrioritizedTexture> texture)
- : LayerTextureUpdater::Texture(texture.Pass())
+FakeLayerUpdater::Texture::Texture(FakeLayerUpdater* layer, scoped_ptr<PrioritizedTexture> texture)
+ : LayerUpdater::Texture(texture.Pass())
, m_layer(layer)
{
m_bitmap.setConfig(SkBitmap::kARGB_8888_Config, 10, 10);
m_bitmap.allocPixels();
}
-FakeLayerTextureUpdater::Texture::~Texture()
+FakeLayerUpdater::Texture::~Texture()
{
}
-void FakeLayerTextureUpdater::Texture::update(TextureUpdateQueue& queue, const IntRect&, const IntSize&, bool partialUpdate, RenderingStats&)
+void FakeLayerUpdater::Texture::update(TextureUpdateQueue& queue, const IntRect&, const IntSize&, bool partialUpdate, RenderingStats&)
{
const IntRect rect(0, 0, 10, 10);
ResourceUpdate upload = ResourceUpdate::Create(
@@ -35,17 +35,17 @@ void FakeLayerTextureUpdater::Texture::update(TextureUpdateQueue& queue, const I
m_layer->update();
}
-FakeLayerTextureUpdater::FakeLayerTextureUpdater()
+FakeLayerUpdater::FakeLayerUpdater()
: m_prepareCount(0)
, m_updateCount(0)
{
}
-FakeLayerTextureUpdater::~FakeLayerTextureUpdater()
+FakeLayerUpdater::~FakeLayerUpdater()
{
}
-void FakeLayerTextureUpdater::prepareToUpdate(const IntRect& contentRect, const IntSize&, float, float, IntRect& resultingOpaqueRect, RenderingStats&)
+void FakeLayerUpdater::prepareToUpdate(const IntRect& contentRect, const IntSize&, float, float, IntRect& resultingOpaqueRect, RenderingStats&)
{
m_prepareCount++;
m_lastUpdateRect = contentRect;
@@ -57,15 +57,15 @@ void FakeLayerTextureUpdater::prepareToUpdate(const IntRect& contentRect, const
resultingOpaqueRect = m_opaquePaintRect;
}
-void FakeLayerTextureUpdater::setRectToInvalidate(const IntRect& rect, FakeTiledLayer* layer)
+void FakeLayerUpdater::setRectToInvalidate(const IntRect& rect, FakeTiledLayer* layer)
{
m_rectToInvalidate = rect;
m_layer = layer;
}
-scoped_ptr<LayerTextureUpdater::Texture> FakeLayerTextureUpdater::createTexture(PrioritizedTextureManager* manager)
+scoped_ptr<LayerUpdater::Texture> FakeLayerUpdater::createTexture(PrioritizedTextureManager* manager)
{
- return scoped_ptr<LayerTextureUpdater::Texture>(new Texture(this, PrioritizedTexture::create(manager)));
+ return scoped_ptr<LayerUpdater::Texture>(new Texture(this, PrioritizedTexture::create(manager)));
}
FakeTiledLayerImpl::FakeTiledLayerImpl(int id)
@@ -79,7 +79,7 @@ FakeTiledLayerImpl::~FakeTiledLayerImpl()
FakeTiledLayer::FakeTiledLayer(PrioritizedTextureManager* textureManager)
: TiledLayer()
- , m_fakeTextureUpdater(make_scoped_refptr(new FakeLayerTextureUpdater))
+ , m_fakeUpdater(make_scoped_refptr(new FakeLayerUpdater))
, m_textureManager(textureManager)
{
setTileSize(tileSize());
@@ -129,9 +129,9 @@ cc::PrioritizedTextureManager* FakeTiledLayer::textureManager() const
return m_textureManager;
}
-cc::LayerTextureUpdater* FakeTiledLayer::textureUpdater() const
+cc::LayerUpdater* FakeTiledLayer::updater() const
{
- return m_fakeTextureUpdater.get();
+ return m_fakeUpdater.get();
}
cc::IntSize FakeTiledLayerWithScaledBounds::contentBounds() const