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

Unified Diff: cc/test/fake_scrollbar_layer.cc

Issue 21917004: Change ScrollbarLayer to use UI resource (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and merge Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/test/fake_scrollbar_layer.h ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_scrollbar_layer.cc
diff --git a/cc/test/fake_scrollbar_layer.cc b/cc/test/fake_scrollbar_layer.cc
index 64e08adf5f8611da6455fd74f6c29a1f53ee1c23..77cf82616ac145f9fa2d8914bf19dfb9ecefccc0 100644
--- a/cc/test/fake_scrollbar_layer.cc
+++ b/cc/test/fake_scrollbar_layer.cc
@@ -18,9 +18,7 @@ FakeScrollbarLayer::FakeScrollbarLayer(bool paint_during_update,
new FakeScrollbar(paint_during_update, has_thumb, false)).Pass(),
scrolling_layer_id),
update_count_(0),
- push_properties_count_(0),
- last_update_full_upload_size_(0),
- last_update_partial_upload_size_(0) {
+ push_properties_count_(0) {
SetAnchorPoint(gfx::PointF(0.f, 0.f));
SetBounds(gfx::Size(1, 1));
SetIsDrawable(true);
@@ -30,12 +28,8 @@ FakeScrollbarLayer::~FakeScrollbarLayer() {}
bool FakeScrollbarLayer::Update(ResourceUpdateQueue* queue,
const OcclusionTracker* occlusion) {
- size_t full = queue->FullUploadSize();
- size_t partial = queue->PartialUploadSize();
bool updated = ScrollbarLayer::Update(queue, occlusion);
- update_count_++;
- last_update_full_upload_size_ = queue->FullUploadSize() - full;
- last_update_partial_upload_size_ = queue->PartialUploadSize() - partial;
+ ++update_count_;
return updated;
}
« no previous file with comments | « cc/test/fake_scrollbar_layer.h ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698