summaryrefslogtreecommitdiffstats
path: root/cc/test/tiled_layer_test_common.cc
diff options
context:
space:
mode:
authorenne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-15 23:55:55 +0000
committerenne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-15 23:55:55 +0000
commit9c9f6bcf24fcc3485ed0d67280fe6239723d5b85 (patch)
treec66eb98ee99e88803a6499dcf4a18b8253ef0ec9 /cc/test/tiled_layer_test_common.cc
parent8af4d5e43646529448d460cd6031613379b57861 (diff)
downloadchromium_src-9c9f6bcf24fcc3485ed0d67280fe6239723d5b85.zip
chromium_src-9c9f6bcf24fcc3485ed0d67280fe6239723d5b85.tar.gz
chromium_src-9c9f6bcf24fcc3485ed0d67280fe6239723d5b85.tar.bz2
cc: Chromify LayerUpdater
R=danakj@chromium.org BUG=none Review URL: https://chromiumcodereview.appspot.com/12850006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@188515 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/tiled_layer_test_common.cc')
-rw-r--r--cc/test/tiled_layer_test_common.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/cc/test/tiled_layer_test_common.cc b/cc/test/tiled_layer_test_common.cc
index 5e7ebbb..1a779ba 100644
--- a/cc/test/tiled_layer_test_common.cc
+++ b/cc/test/tiled_layer_test_common.cc
@@ -27,15 +27,15 @@ FakeLayerUpdater::Resource::~Resource()
{
}
-void FakeLayerUpdater::Resource::update(ResourceUpdateQueue& queue, const gfx::Rect&, const gfx::Vector2d&, bool partialUpdate, RenderingStats*)
+void FakeLayerUpdater::Resource::Update(ResourceUpdateQueue* queue, gfx::Rect sourceRect, gfx::Vector2d destOffset, bool partialUpdate, RenderingStats* stats)
{
const gfx::Rect rect(0, 0, 10, 10);
ResourceUpdate upload = ResourceUpdate::Create(
texture(), &m_bitmap, rect, rect, gfx::Vector2d());
if (partialUpdate)
- queue.appendPartialUpload(upload);
+ queue->appendPartialUpload(upload);
else
- queue.appendFullUpload(upload);
+ queue->appendFullUpload(upload);
m_layer->update();
}
@@ -50,7 +50,7 @@ FakeLayerUpdater::~FakeLayerUpdater()
{
}
-void FakeLayerUpdater::prepareToUpdate(const gfx::Rect& contentRect, const gfx::Size&, float, float, gfx::Rect& resultingOpaqueRect, RenderingStats*)
+void FakeLayerUpdater::PrepareToUpdate(gfx::Rect contentRect, gfx::Size, float, float, gfx::Rect* resultingOpaqueRect, RenderingStats*)
{
m_prepareCount++;
m_lastUpdateRect = contentRect;
@@ -59,7 +59,7 @@ void FakeLayerUpdater::prepareToUpdate(const gfx::Rect& contentRect, const gfx::
m_rectToInvalidate = gfx::Rect();
m_layer = NULL;
}
- resultingOpaqueRect = m_opaquePaintRect;
+ *resultingOpaqueRect = m_opaquePaintRect;
}
void FakeLayerUpdater::setRectToInvalidate(const gfx::Rect& rect, FakeTiledLayer* layer)
@@ -68,7 +68,7 @@ void FakeLayerUpdater::setRectToInvalidate(const gfx::Rect& rect, FakeTiledLayer
m_layer = layer;
}
-scoped_ptr<LayerUpdater::Resource> FakeLayerUpdater::createResource(PrioritizedResourceManager* manager)
+scoped_ptr<LayerUpdater::Resource> FakeLayerUpdater::CreateResource(PrioritizedResourceManager* manager)
{
return scoped_ptr<LayerUpdater::Resource>(new Resource(this, PrioritizedResource::create(manager)));
}