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

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

Issue 737943002: Update from https://crrev.com/304715 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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_content_layer_client.h ('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 17 matching lines...) Expand all
28 size_t update_count() const { return update_count_; } 28 size_t update_count() const { return update_count_; }
29 void reset_update_count() { update_count_ = 0; } 29 void reset_update_count() { update_count_ = 0; }
30 30
31 size_t push_properties_count() const { return push_properties_count_; } 31 size_t push_properties_count() const { return push_properties_count_; }
32 void reset_push_properties_count() { push_properties_count_ = 0; } 32 void reset_push_properties_count() { push_properties_count_ = 0; }
33 33
34 void set_always_update_resources(bool always_update_resources) { 34 void set_always_update_resources(bool always_update_resources) {
35 always_update_resources_ = always_update_resources; 35 always_update_resources_ = always_update_resources;
36 } 36 }
37 37
38 void disable_lcd_text() { disable_lcd_text_ = true; }
39
38 bool Update(ResourceUpdateQueue* queue, 40 bool Update(ResourceUpdateQueue* queue,
39 const OcclusionTracker<Layer>* occlusion) override; 41 const OcclusionTracker<Layer>* occlusion) override;
40 42
41 void PushPropertiesTo(LayerImpl* layer) override; 43 void PushPropertiesTo(LayerImpl* layer) override;
42 44
43 void OnOutputSurfaceCreated() override; 45 void OnOutputSurfaceCreated() override;
44 size_t output_surface_created_count() const { 46 size_t output_surface_created_count() const {
45 return output_surface_created_count_; 47 return output_surface_created_count_;
46 } 48 }
47 49
48 private: 50 private:
49 explicit FakePictureLayer(ContentLayerClient* client); 51 explicit FakePictureLayer(ContentLayerClient* client);
50 FakePictureLayer(ContentLayerClient* client, 52 FakePictureLayer(ContentLayerClient* client,
51 scoped_ptr<RecordingSource> source); 53 scoped_ptr<RecordingSource> source);
52 ~FakePictureLayer() override; 54 ~FakePictureLayer() override;
53 55
54 size_t update_count_; 56 size_t update_count_;
55 size_t push_properties_count_; 57 size_t push_properties_count_;
56 size_t output_surface_created_count_; 58 size_t output_surface_created_count_;
57 bool always_update_resources_; 59 bool always_update_resources_;
60 bool disable_lcd_text_;
58 }; 61 };
59 62
60 } // namespace cc 63 } // namespace cc
61 64
62 #endif // CC_TEST_FAKE_PICTURE_LAYER_H_ 65 #endif // CC_TEST_FAKE_PICTURE_LAYER_H_
OLDNEW
« no previous file with comments | « cc/test/fake_content_layer_client.h ('k') | cc/test/fake_picture_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698