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

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

Issue 14874004: cc: Inflate invalidation in each picture list (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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.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 20 matching lines...) Expand all
31 } 31 }
32 32
33 void set_slow_down_raster_scale_factor(int factor) { 33 void set_slow_down_raster_scale_factor(int factor) {
34 slow_down_raster_scale_factor_for_debug_ = factor; 34 slow_down_raster_scale_factor_for_debug_ = factor;
35 } 35 }
36 36
37 void set_show_debug_picture_borders(bool show) { 37 void set_show_debug_picture_borders(bool show) {
38 show_debug_picture_borders_ = show; 38 show_debug_picture_borders_ = show;
39 } 39 }
40 40
41 protected:
42 virtual ~PicturePile();
43
41 private: 44 private:
42 virtual ~PicturePile();
43 friend class PicturePileImpl; 45 friend class PicturePileImpl;
44 46
45 // Add an invalidation to this picture list. If the list needs to be 47 // Add an invalidation to this picture list. If the list needs to be
46 // entirely recreated, leave it empty. Do not call this on an empty list. 48 // entirely recreated, leave it empty. Do not call this on an empty list.
47 void InvalidateRect( 49 void InvalidateRect(
48 PictureList& picture_list, 50 PictureList& picture_list,
49 gfx::Rect invalidation); 51 gfx::Rect invalidation);
50 52
51 DISALLOW_COPY_AND_ASSIGN(PicturePile); 53 DISALLOW_COPY_AND_ASSIGN(PicturePile);
52 }; 54 };
53 55
54 } // namespace cc 56 } // namespace cc
55 57
56 #endif // CC_RESOURCES_PICTURE_PILE_H_ 58 #endif // CC_RESOURCES_PICTURE_PILE_H_
OLDNEW
« no previous file with comments | « cc/resources/picture_layer_tiling.cc ('k') | cc/resources/picture_pile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698