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

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

Issue 11464041: cc: Don't use partial updates for scrollbars when they are not allowed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit Created 8 years 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/scrollbar_layer.cc ('k') | cc/test/fake_scrollbar_layer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CC_TEST_FAKE_SCROLLBAR_LAYER_H_
6 #define CC_TEST_FAKE_SCROLLBAR_LAYER_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "cc/scrollbar_layer.h"
10
11 namespace cc {
12
13 class FakeScrollbarLayer : public ScrollbarLayer {
14 public:
15 static scoped_refptr<FakeScrollbarLayer> Create(
16 bool paint_during_update, int scrolling_layer_id) {
17 return make_scoped_refptr(new FakeScrollbarLayer(
18 paint_during_update, scrolling_layer_id));
19 }
20
21 int update_count() { return update_count_; }
22 void reset_update_count() { update_count_ = 0; }
23
24 virtual void update(
25 ResourceUpdateQueue& queue,
26 const OcclusionTracker* occlusion,
27 RenderingStats& stats) OVERRIDE;
28
29 private:
30 FakeScrollbarLayer(bool paint_during_update, int scrolling_layer_id);
31 virtual ~FakeScrollbarLayer();
32
33 int update_count_;
34 };
35
36 } // namespace cc
37
38 #endif // CC_TEST_FAKE_SCROLLBAR_LAYER_H_
OLDNEW
« no previous file with comments | « cc/scrollbar_layer.cc ('k') | cc/test/fake_scrollbar_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698