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

Side by Side Diff: cc/resources/picture_pile.h

Issue 1028333002: Chromium -> Mojo roll. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 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
« no previous file with comments | « cc/resources/picture_layer_tiling_unittest.cc ('k') | cc/resources/picture_pile.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_RESOURCES_PICTURE_PILE_H_ 5 #ifndef CC_RESOURCES_PICTURE_PILE_H_
6 #define CC_RESOURCES_PICTURE_PILE_H_ 6 #define CC_RESOURCES_PICTURE_PILE_H_
7 7
8 #include <bitset> 8 #include <bitset>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 17 matching lines...) Expand all
28 const gfx::Size& layer_size, 28 const gfx::Size& layer_size,
29 const gfx::Rect& visible_layer_rect, 29 const gfx::Rect& visible_layer_rect,
30 int frame_number, 30 int frame_number,
31 RecordingMode recording_mode) override; 31 RecordingMode recording_mode) override;
32 void DidMoveToNewCompositor() override; 32 void DidMoveToNewCompositor() override;
33 scoped_refptr<RasterSource> CreateRasterSource( 33 scoped_refptr<RasterSource> CreateRasterSource(
34 bool can_use_lcd_text) const override; 34 bool can_use_lcd_text) const override;
35 gfx::Size GetSize() const final; 35 gfx::Size GetSize() const final;
36 void SetEmptyBounds() override; 36 void SetEmptyBounds() override;
37 void SetSlowdownRasterScaleFactor(int factor) override; 37 void SetSlowdownRasterScaleFactor(int factor) override;
38 void SetGatherPixelRefs(bool gather_pixel_refs) override;
38 void SetBackgroundColor(SkColor background_color) override; 39 void SetBackgroundColor(SkColor background_color) override;
39 void SetRequiresClear(bool requires_clear) override; 40 void SetRequiresClear(bool requires_clear) override;
40 bool IsSuitableForGpuRasterization() const override; 41 bool IsSuitableForGpuRasterization() const override;
41 void SetUnsuitableForGpuRasterizationForTesting() override; 42 void SetUnsuitableForGpuRasterizationForTesting() override;
42 gfx::Size GetTileGridSizeForTesting() const override; 43 gfx::Size GetTileGridSizeForTesting() const override;
43 44
44 protected: 45 protected:
45 class CC_EXPORT PictureInfo { 46 class CC_EXPORT PictureInfo {
46 public: 47 public:
47 enum { INVALIDATION_FRAMES_TRACKED = 32 }; 48 enum { INVALIDATION_FRAMES_TRACKED = 32 };
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 PictureMap picture_map_; 92 PictureMap picture_map_;
92 TilingData tiling_; 93 TilingData tiling_;
93 94
94 // If non-empty, all pictures tiles inside this rect are recorded. There may 95 // If non-empty, all pictures tiles inside this rect are recorded. There may
95 // be recordings outside this rect, but everything inside the rect is 96 // be recordings outside this rect, but everything inside the rect is
96 // recorded. 97 // recorded.
97 gfx::Rect recorded_viewport_; 98 gfx::Rect recorded_viewport_;
98 float min_contents_scale_; 99 float min_contents_scale_;
99 gfx::Size tile_grid_size_; 100 gfx::Size tile_grid_size_;
100 int slow_down_raster_scale_factor_for_debug_; 101 int slow_down_raster_scale_factor_for_debug_;
102 bool gather_pixel_refs_;
101 // A hint about whether there are any recordings. This may be a false 103 // A hint about whether there are any recordings. This may be a false
102 // positive. 104 // positive.
103 bool has_any_recordings_; 105 bool has_any_recordings_;
104 bool clear_canvas_with_debug_color_; 106 bool clear_canvas_with_debug_color_;
105 bool requires_clear_; 107 bool requires_clear_;
106 bool is_solid_color_; 108 bool is_solid_color_;
107 SkColor solid_color_; 109 SkColor solid_color_;
108 SkColor background_color_; 110 SkColor background_color_;
109 int pixel_record_distance_; 111 int pixel_record_distance_;
110 112
(...skipping 16 matching lines...) Expand all
127 void SetBufferPixels(int buffer_pixels); 129 void SetBufferPixels(int buffer_pixels);
128 130
129 bool is_suitable_for_gpu_rasterization_; 131 bool is_suitable_for_gpu_rasterization_;
130 132
131 DISALLOW_COPY_AND_ASSIGN(PicturePile); 133 DISALLOW_COPY_AND_ASSIGN(PicturePile);
132 }; 134 };
133 135
134 } // namespace cc 136 } // namespace cc
135 137
136 #endif // CC_RESOURCES_PICTURE_PILE_H_ 138 #endif // CC_RESOURCES_PICTURE_PILE_H_
OLDNEW
« no previous file with comments | « cc/resources/picture_layer_tiling_unittest.cc ('k') | cc/resources/picture_pile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698