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

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

Issue 375923005: cc: Explicitly invalidate all dropped recordings on the main thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: invalid-resize: resizedeletestiles Created 6 years, 5 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/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 "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
(...skipping 10 matching lines...) Expand all
21 // Invalidations are in layer space, and will be expanded to cover everything 21 // Invalidations are in layer space, and will be expanded to cover everything
22 // that was either recorded/changed or that has no recording, leaving out only 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. 23 // pieces that we had a recording for and it was not changed.
24 // Return true iff the pile was modified. 24 // Return true iff the pile was modified.
25 bool UpdateAndExpandInvalidation( 25 bool UpdateAndExpandInvalidation(
26 ContentLayerClient* painter, 26 ContentLayerClient* painter,
27 Region* invalidation, 27 Region* invalidation,
28 SkColor background_color, 28 SkColor background_color,
29 bool contents_opaque, 29 bool contents_opaque,
30 bool contents_fill_bounds_completely, 30 bool contents_fill_bounds_completely,
31 const gfx::Rect& layer_bounds_rect,
31 const gfx::Rect& visible_layer_rect, 32 const gfx::Rect& visible_layer_rect,
32 int frame_number, 33 int frame_number,
33 Picture::RecordingMode recording_mode, 34 Picture::RecordingMode recording_mode,
34 RenderingStatsInstrumentation* stats_instrumentation); 35 RenderingStatsInstrumentation* stats_instrumentation);
35 36
37 void SetEmptyBounds();
38
36 void set_slow_down_raster_scale_factor(int factor) { 39 void set_slow_down_raster_scale_factor(int factor) {
37 slow_down_raster_scale_factor_for_debug_ = factor; 40 slow_down_raster_scale_factor_for_debug_ = factor;
38 } 41 }
39 42
40 void set_show_debug_picture_borders(bool show) { 43 void set_show_debug_picture_borders(bool show) {
41 show_debug_picture_borders_ = show; 44 show_debug_picture_borders_ = show;
42 } 45 }
43 46
44 bool is_suitable_for_gpu_rasterization() const { 47 bool is_suitable_for_gpu_rasterization() const {
45 return is_suitable_for_gpu_rasterization_; 48 return is_suitable_for_gpu_rasterization_;
46 } 49 }
47 void SetUnsuitableForGpuRasterizationForTesting() { 50 void SetUnsuitableForGpuRasterizationForTesting() {
48 is_suitable_for_gpu_rasterization_ = false; 51 is_suitable_for_gpu_rasterization_ = false;
49 } 52 }
50 53
51 protected: 54 protected:
52 virtual ~PicturePile(); 55 virtual ~PicturePile();
53 56
54 private: 57 private:
55 friend class PicturePileImpl; 58 friend class PicturePileImpl;
56 59
57 bool is_suitable_for_gpu_rasterization_; 60 bool is_suitable_for_gpu_rasterization_;
58 61
59 DISALLOW_COPY_AND_ASSIGN(PicturePile); 62 DISALLOW_COPY_AND_ASSIGN(PicturePile);
60 }; 63 };
61 64
62 } // namespace cc 65 } // namespace cc
63 66
64 #endif // CC_RESOURCES_PICTURE_PILE_H_ 67 #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