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

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

Issue 12426024: cc: Switch RenderingStats collection in Layer::Update() to RenderingStatsInstrumentation (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase to 190965 Created 7 years, 8 months 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
« no previous file with comments | « cc/test/fake_scrollbar_layer.h ('k') | cc/test/tiled_layer_test_common.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 "cc/test/fake_scrollbar_layer.h" 5 #include "cc/test/fake_scrollbar_layer.h"
6 6
7 #include "cc/resources/resource_update_queue.h" 7 #include "cc/resources/resource_update_queue.h"
8 #include "cc/test/fake_scrollbar_theme_painter.h" 8 #include "cc/test/fake_scrollbar_theme_painter.h"
9 #include "cc/test/fake_web_scrollbar.h" 9 #include "cc/test/fake_web_scrollbar.h"
10 #include "cc/test/fake_web_scrollbar_theme_geometry.h" 10 #include "cc/test/fake_web_scrollbar_theme_geometry.h"
(...skipping 13 matching lines...) Expand all
24 last_update_full_upload_size_(0), 24 last_update_full_upload_size_(0),
25 last_update_partial_upload_size_(0) { 25 last_update_partial_upload_size_(0) {
26 SetAnchorPoint(gfx::PointF(0.f, 0.f)); 26 SetAnchorPoint(gfx::PointF(0.f, 0.f));
27 SetBounds(gfx::Size(1, 1)); 27 SetBounds(gfx::Size(1, 1));
28 SetIsDrawable(true); 28 SetIsDrawable(true);
29 } 29 }
30 30
31 FakeScrollbarLayer::~FakeScrollbarLayer() {} 31 FakeScrollbarLayer::~FakeScrollbarLayer() {}
32 32
33 void FakeScrollbarLayer::Update(ResourceUpdateQueue* queue, 33 void FakeScrollbarLayer::Update(ResourceUpdateQueue* queue,
34 const OcclusionTracker* occlusion, 34 const OcclusionTracker* occlusion) {
35 RenderingStats* stats) {
36 size_t full = queue->FullUploadSize(); 35 size_t full = queue->FullUploadSize();
37 size_t partial = queue->PartialUploadSize(); 36 size_t partial = queue->PartialUploadSize();
38 ScrollbarLayer::Update(queue, occlusion, stats); 37 ScrollbarLayer::Update(queue, occlusion);
39 update_count_++; 38 update_count_++;
40 last_update_full_upload_size_ = queue->FullUploadSize() - full; 39 last_update_full_upload_size_ = queue->FullUploadSize() - full;
41 last_update_partial_upload_size_ = queue->PartialUploadSize() - partial; 40 last_update_partial_upload_size_ = queue->PartialUploadSize() - partial;
42 } 41 }
43 42
44 } // namespace cc 43 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/fake_scrollbar_layer.h ('k') | cc/test/tiled_layer_test_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698