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

Side by Side Diff: cc/layers/picture_layer.h

Issue 640063010: cc: Don't swap PictureLayerTilingSet on activate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: noswap: rebase Created 6 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
« no previous file with comments | « cc/layers/picture_image_layer_impl_unittest.cc ('k') | cc/layers/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_LAYERS_PICTURE_LAYER_H_ 5 #ifndef CC_LAYERS_PICTURE_LAYER_H_
6 #define CC_LAYERS_PICTURE_LAYER_H_ 6 #define CC_LAYERS_PICTURE_LAYER_H_
7 7
8 #include "cc/base/invalidation_region.h" 8 #include "cc/base/invalidation_region.h"
9 #include "cc/debug/devtools_instrumentation.h" 9 #include "cc/debug/devtools_instrumentation.h"
10 #include "cc/debug/micro_benchmark_controller.h" 10 #include "cc/debug/micro_benchmark_controller.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 return recording_source_.get(); 43 return recording_source_.get();
44 } 44 }
45 45
46 protected: 46 protected:
47 explicit PictureLayer(ContentLayerClient* client); 47 explicit PictureLayer(ContentLayerClient* client);
48 // Allow tests to inject a recording source. 48 // Allow tests to inject a recording source.
49 PictureLayer(ContentLayerClient* client, scoped_ptr<RecordingSource> source); 49 PictureLayer(ContentLayerClient* client, scoped_ptr<RecordingSource> source);
50 ~PictureLayer() override; 50 ~PictureLayer() override;
51 51
52 bool HasDrawableContent() const override; 52 bool HasDrawableContent() const override;
53
54 bool is_mask() const { return is_mask_; }
55
56 private:
53 bool UpdateCanUseLCDText(); 57 bool UpdateCanUseLCDText();
54 58
55 private:
56 ContentLayerClient* client_; 59 ContentLayerClient* client_;
57 scoped_ptr<RecordingSource> recording_source_; 60 scoped_ptr<RecordingSource> recording_source_;
58 devtools_instrumentation:: 61 devtools_instrumentation::
59 ScopedLayerObjectTracker instrumentation_object_tracker_; 62 ScopedLayerObjectTracker instrumentation_object_tracker_;
60 // Invalidation to use the next time update is called. 63 // Invalidation to use the next time update is called.
61 InvalidationRegion pending_invalidation_; 64 InvalidationRegion pending_invalidation_;
62 // Invalidation from the last time update was called. 65 // Invalidation from the last time update was called.
63 Region recording_invalidation_; 66 Region recording_invalidation_;
64 gfx::Rect last_updated_visible_content_rect_; 67 gfx::Rect last_updated_visible_content_rect_;
65 68
66 int update_source_frame_number_; 69 int update_source_frame_number_;
67 bool can_use_lcd_text_for_update_; 70 bool can_use_lcd_text_for_update_;
68 bool is_mask_; 71 bool is_mask_;
69 72
70 DISALLOW_COPY_AND_ASSIGN(PictureLayer); 73 DISALLOW_COPY_AND_ASSIGN(PictureLayer);
71 }; 74 };
72 75
73 } // namespace cc 76 } // namespace cc
74 77
75 #endif // CC_LAYERS_PICTURE_LAYER_H_ 78 #endif // CC_LAYERS_PICTURE_LAYER_H_
OLDNEW
« no previous file with comments | « cc/layers/picture_image_layer_impl_unittest.cc ('k') | cc/layers/picture_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698