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

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

Issue 347493002: Revert 277964 "cc: In SyncFromActiveLayer, drop all tiles not in..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 6 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 | « trunk/src/cc/layers/picture_layer_impl.cc ('k') | trunk/src/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 "cc/resources/picture_pile_base.h" 8 #include "cc/resources/picture_pile_base.h"
9 #include "ui/gfx/rect.h" 9 #include "ui/gfx/rect.h"
10 10
11 namespace cc { 11 namespace cc {
12 class PicturePileImpl; 12 class PicturePileImpl;
13 class Region; 13 class Region;
14 class RenderingStatsInstrumentation; 14 class RenderingStatsInstrumentation;
15 15
16 class CC_EXPORT PicturePile : public PicturePileBase { 16 class CC_EXPORT PicturePile : public PicturePileBase {
17 public: 17 public:
18 PicturePile(); 18 PicturePile();
19 19
20 // Re-record parts of the picture that are invalid. 20 // Re-record parts of the picture that are invalid.
21 // Invalidations are in layer space, and will be expanded to cover everything 21 // Invalidations are in layer space.
22 // that was either recorded/changed or that has no recording, leaving out only
23 // pieces that we had a recording for and it was not changed.
24 // Return true iff the pile was modified. 22 // Return true iff the pile was modified.
25 bool UpdateAndExpandInvalidation( 23 bool Update(ContentLayerClient* painter,
26 ContentLayerClient* painter, 24 SkColor background_color,
27 Region* invalidation, 25 bool contents_opaque,
28 SkColor background_color, 26 bool contents_fill_bounds_completely,
29 bool contents_opaque, 27 const Region& invalidation,
30 bool contents_fill_bounds_completely, 28 const gfx::Rect& visible_layer_rect,
31 const gfx::Rect& visible_layer_rect, 29 int frame_number,
32 int frame_number, 30 Picture::RecordingMode recording_mode,
33 Picture::RecordingMode recording_mode, 31 RenderingStatsInstrumentation* stats_instrumentation);
34 RenderingStatsInstrumentation* stats_instrumentation);
35 32
36 void set_slow_down_raster_scale_factor(int factor) { 33 void set_slow_down_raster_scale_factor(int factor) {
37 slow_down_raster_scale_factor_for_debug_ = factor; 34 slow_down_raster_scale_factor_for_debug_ = factor;
38 } 35 }
39 36
40 void set_show_debug_picture_borders(bool show) { 37 void set_show_debug_picture_borders(bool show) {
41 show_debug_picture_borders_ = show; 38 show_debug_picture_borders_ = show;
42 } 39 }
43 40
44 bool is_suitable_for_gpu_rasterization() const { 41 bool is_suitable_for_gpu_rasterization() const {
(...skipping 10 matching lines...) Expand all
55 friend class PicturePileImpl; 52 friend class PicturePileImpl;
56 53
57 bool is_suitable_for_gpu_rasterization_; 54 bool is_suitable_for_gpu_rasterization_;
58 55
59 DISALLOW_COPY_AND_ASSIGN(PicturePile); 56 DISALLOW_COPY_AND_ASSIGN(PicturePile);
60 }; 57 };
61 58
62 } // namespace cc 59 } // namespace cc
63 60
64 #endif // CC_RESOURCES_PICTURE_PILE_H_ 61 #endif // CC_RESOURCES_PICTURE_PILE_H_
OLDNEW
« no previous file with comments | « trunk/src/cc/layers/picture_layer_impl.cc ('k') | trunk/src/cc/resources/picture_pile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698