Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(322)

Side by Side Diff: cc/test/tiled_layer_test_common.cc

Issue 11270047: cc: Rename TextureUpdate to ResourceUpdate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sort includes and forward declarations. Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/test/tiled_layer_test_common.h ('k') | cc/texture_layer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 6
7 #include "cc/test/tiled_layer_test_common.h" 7 #include "cc/test/tiled_layer_test_common.h"
8 8
9 using namespace cc; 9 using namespace cc;
10 10
11 namespace WebKitTests { 11 namespace WebKitTests {
12 12
13 FakeLayerUpdater::Resource::Resource(FakeLayerUpdater* layer, scoped_ptr<Priorit izedTexture> texture) 13 FakeLayerUpdater::Resource::Resource(FakeLayerUpdater* layer, scoped_ptr<Priorit izedTexture> texture)
14 : LayerUpdater::Resource(texture.Pass()) 14 : LayerUpdater::Resource(texture.Pass())
15 , m_layer(layer) 15 , m_layer(layer)
16 { 16 {
17 m_bitmap.setConfig(SkBitmap::kARGB_8888_Config, 10, 10); 17 m_bitmap.setConfig(SkBitmap::kARGB_8888_Config, 10, 10);
18 m_bitmap.allocPixels(); 18 m_bitmap.allocPixels();
19 } 19 }
20 20
21 FakeLayerUpdater::Resource::~Resource() 21 FakeLayerUpdater::Resource::~Resource()
22 { 22 {
23 } 23 }
24 24
25 void FakeLayerUpdater::Resource::update(TextureUpdateQueue& queue, const IntRect &, const IntSize&, bool partialUpdate, RenderingStats&) 25 void FakeLayerUpdater::Resource::update(ResourceUpdateQueue& queue, const IntRec t&, const IntSize&, bool partialUpdate, RenderingStats&)
26 { 26 {
27 const IntRect rect(0, 0, 10, 10); 27 const IntRect rect(0, 0, 10, 10);
28 ResourceUpdate upload = ResourceUpdate::Create( 28 ResourceUpdate upload = ResourceUpdate::Create(
29 texture(), &m_bitmap, rect, rect, IntSize()); 29 texture(), &m_bitmap, rect, rect, IntSize());
30 if (partialUpdate) 30 if (partialUpdate)
31 queue.appendPartialUpload(upload); 31 queue.appendPartialUpload(upload);
32 else 32 else
33 queue.appendFullUpload(upload); 33 queue.appendFullUpload(upload);
34 34
35 m_layer->update(); 35 m_layer->update();
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 { 133 {
134 return m_fakeUpdater.get(); 134 return m_fakeUpdater.get();
135 } 135 }
136 136
137 cc::IntSize FakeTiledLayerWithScaledBounds::contentBounds() const 137 cc::IntSize FakeTiledLayerWithScaledBounds::contentBounds() const
138 { 138 {
139 return m_forcedContentBounds; 139 return m_forcedContentBounds;
140 } 140 }
141 141
142 } // namespace 142 } // namespace
OLDNEW
« no previous file with comments | « cc/test/tiled_layer_test_common.h ('k') | cc/texture_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698