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

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

Issue 183563003: cc: Clean up OcclusionTracker template parameters. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: occlusionparams: Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « cc/test/fake_painted_scrollbar_layer.cc ('k') | cc/test/fake_picture_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
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 #ifndef CC_TEST_FAKE_PICTURE_LAYER_H_ 5 #ifndef CC_TEST_FAKE_PICTURE_LAYER_H_
6 #define CC_TEST_FAKE_PICTURE_LAYER_H_ 6 #define CC_TEST_FAKE_PICTURE_LAYER_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "cc/layers/picture_layer.h" 10 #include "cc/layers/picture_layer.h"
(...skipping 13 matching lines...) Expand all
24 void reset_update_count() { update_count_ = 0; } 24 void reset_update_count() { update_count_ = 0; }
25 25
26 size_t push_properties_count() const { return push_properties_count_; } 26 size_t push_properties_count() const { return push_properties_count_; }
27 void reset_push_properties_count() { push_properties_count_ = 0; } 27 void reset_push_properties_count() { push_properties_count_ = 0; }
28 28
29 void set_always_update_resources(bool always_update_resources) { 29 void set_always_update_resources(bool always_update_resources) {
30 always_update_resources_ = always_update_resources; 30 always_update_resources_ = always_update_resources;
31 } 31 }
32 32
33 virtual bool Update(ResourceUpdateQueue* queue, 33 virtual bool Update(ResourceUpdateQueue* queue,
34 const OcclusionTracker* occlusion) OVERRIDE; 34 const OcclusionTracker<Layer>* occlusion) OVERRIDE;
35 35
36 virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE; 36 virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE;
37 37
38 private: 38 private:
39 explicit FakePictureLayer(ContentLayerClient* client); 39 explicit FakePictureLayer(ContentLayerClient* client);
40 virtual ~FakePictureLayer(); 40 virtual ~FakePictureLayer();
41 41
42 size_t update_count_; 42 size_t update_count_;
43 size_t push_properties_count_; 43 size_t push_properties_count_;
44 bool always_update_resources_; 44 bool always_update_resources_;
45 }; 45 };
46 46
47 } // namespace cc 47 } // namespace cc
48 48
49 #endif // CC_TEST_FAKE_PICTURE_LAYER_H_ 49 #endif // CC_TEST_FAKE_PICTURE_LAYER_H_
OLDNEW
« no previous file with comments | « cc/test/fake_painted_scrollbar_layer.cc ('k') | cc/test/fake_picture_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698