diff options
author | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-28 03:53:29 +0000 |
---|---|---|
committer | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-28 03:53:29 +0000 |
commit | b3b5d0affe4c58208decd4a327812e202510a9e9 (patch) | |
tree | 45c0bce01a599f5e1221251302f492f48ac91d07 /cc/test | |
parent | 67ea507fbee5b2d1647f3b86a60c36e8ba40c797 (diff) | |
download | chromium_src-b3b5d0affe4c58208decd4a327812e202510a9e9.zip chromium_src-b3b5d0affe4c58208decd4a327812e202510a9e9.tar.gz chromium_src-b3b5d0affe4c58208decd4a327812e202510a9e9.tar.bz2 |
Revert 191086 "cc: Switch RenderingStats collection in Layer::Up..."
Looks like its DCHECKing on Win Aura interactive_ui_tests again. Same
error as before.
http://build.chromium.org/p/chromium.win/buildstatus?builder=Win%20Aura%20Tests%20%283%29&number=2148
> cc: Switch RenderingStats collection in Layer::Update() to RenderingStatsInstrumentation
>
> This change switches all of the remaining RenderingStats collection in
> composited mode to use RenderinStatsInstrumentation.
>
> BUG=181319
>
>
> Review URL: https://chromiumcodereview.appspot.com/12426024
TBR=egraether@chromium.org
Review URL: https://codereview.chromium.org/13145002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191101 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test')
-rw-r--r-- | cc/test/fake_content_layer.cc | 5 | ||||
-rw-r--r-- | cc/test/fake_content_layer.h | 3 | ||||
-rw-r--r-- | cc/test/fake_scrollbar_layer.cc | 5 | ||||
-rw-r--r-- | cc/test/fake_scrollbar_layer.h | 3 | ||||
-rw-r--r-- | cc/test/tiled_layer_test_common.cc | 6 | ||||
-rw-r--r-- | cc/test/tiled_layer_test_common.h | 6 |
6 files changed, 18 insertions, 10 deletions
diff --git a/cc/test/fake_content_layer.cc b/cc/test/fake_content_layer.cc index a30ea95..384521c 100644 --- a/cc/test/fake_content_layer.cc +++ b/cc/test/fake_content_layer.cc @@ -25,8 +25,9 @@ scoped_ptr<LayerImpl> FakeContentLayer::CreateLayerImpl( } void FakeContentLayer::Update(ResourceUpdateQueue* queue, - const OcclusionTracker* occlusion) { - ContentLayer::Update(queue, occlusion); + const OcclusionTracker* occlusion, + RenderingStats* stats) { + ContentLayer::Update(queue, occlusion, stats); update_count_++; } diff --git a/cc/test/fake_content_layer.h b/cc/test/fake_content_layer.h index cf8066a..52fea8f 100644 --- a/cc/test/fake_content_layer.h +++ b/cc/test/fake_content_layer.h @@ -24,7 +24,8 @@ class FakeContentLayer : public ContentLayer { virtual void Update( ResourceUpdateQueue* queue, - const OcclusionTracker* occlusion) OVERRIDE; + const OcclusionTracker* occlusion, + RenderingStats* stats) OVERRIDE; bool HaveBackingAt(int i, int j); diff --git a/cc/test/fake_scrollbar_layer.cc b/cc/test/fake_scrollbar_layer.cc index 457a5d1..96fbeec 100644 --- a/cc/test/fake_scrollbar_layer.cc +++ b/cc/test/fake_scrollbar_layer.cc @@ -31,10 +31,11 @@ FakeScrollbarLayer::FakeScrollbarLayer(bool paint_during_update, FakeScrollbarLayer::~FakeScrollbarLayer() {} void FakeScrollbarLayer::Update(ResourceUpdateQueue* queue, - const OcclusionTracker* occlusion) { + const OcclusionTracker* occlusion, + RenderingStats* stats) { size_t full = queue->FullUploadSize(); size_t partial = queue->PartialUploadSize(); - ScrollbarLayer::Update(queue, occlusion); + ScrollbarLayer::Update(queue, occlusion, stats); update_count_++; last_update_full_upload_size_ = queue->FullUploadSize() - full; last_update_partial_upload_size_ = queue->PartialUploadSize() - partial; diff --git a/cc/test/fake_scrollbar_layer.h b/cc/test/fake_scrollbar_layer.h index 8d0d624..f06f752 100644 --- a/cc/test/fake_scrollbar_layer.h +++ b/cc/test/fake_scrollbar_layer.h @@ -29,7 +29,8 @@ class FakeScrollbarLayer : public ScrollbarLayer { } virtual void Update(ResourceUpdateQueue* queue, - const OcclusionTracker* occlusion) OVERRIDE; + const OcclusionTracker* occlusion, + RenderingStats* stats) OVERRIDE; private: FakeScrollbarLayer(bool paint_during_update, diff --git a/cc/test/tiled_layer_test_common.cc b/cc/test/tiled_layer_test_common.cc index ece1ec6..ce3d365 100644 --- a/cc/test/tiled_layer_test_common.cc +++ b/cc/test/tiled_layer_test_common.cc @@ -18,7 +18,8 @@ FakeLayerUpdater::Resource::~Resource() {} void FakeLayerUpdater::Resource::Update(ResourceUpdateQueue* queue, gfx::Rect source_rect, gfx::Vector2d dest_offset, - bool partial_update) { + bool partial_update, + RenderingStats* stats) { const gfx::Rect kRect(0, 0, 10, 10); ResourceUpdate upload = ResourceUpdate::Create( texture(), &bitmap_, kRect, kRect, gfx::Vector2d()); @@ -38,7 +39,8 @@ void FakeLayerUpdater::PrepareToUpdate(gfx::Rect content_rect, gfx::Size tile_size, float contents_width_scale, float contents_height_scale, - gfx::Rect* resulting_opaque_rect) { + gfx::Rect* resulting_opaque_rect, + RenderingStats* stats) { prepare_count_++; last_update_rect_ = content_rect; if (!rect_to_invalidate_.IsEmpty()) { diff --git a/cc/test/tiled_layer_test_common.h b/cc/test/tiled_layer_test_common.h index 9e84e6e..11666d3 100644 --- a/cc/test/tiled_layer_test_common.h +++ b/cc/test/tiled_layer_test_common.h @@ -32,7 +32,8 @@ class FakeLayerUpdater : public LayerUpdater { virtual void Update(ResourceUpdateQueue* queue, gfx::Rect source_rect, gfx::Vector2d dest_offset, - bool partial_update) OVERRIDE; + bool partial_update, + RenderingStats* stats) OVERRIDE; private: FakeLayerUpdater* layer_; @@ -50,7 +51,8 @@ class FakeLayerUpdater : public LayerUpdater { gfx::Size tile_size, float contents_width_scale, float contents_height_scale, - gfx::Rect* resulting_opaque_rect) OVERRIDE; + gfx::Rect* resulting_opaque_rect, + RenderingStats* stats) OVERRIDE; // Sets the rect to invalidate during the next call to PrepareToUpdate(). // After the next call to PrepareToUpdate() the rect is reset. void SetRectToInvalidate(gfx::Rect rect, FakeTiledLayer* layer); |