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

Side by Side Diff: cc/picture_pile.h

Issue 12471007: Part 8 of cc/ directory shuffles: resources (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « cc/picture_layer_tiling_unittest.cc ('k') | cc/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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CC_PICTURE_PILE_H_
6 #define CC_PICTURE_PILE_H_
7
8 #include "cc/picture_pile_base.h"
9 #include "ui/gfx/rect.h"
10
11 namespace cc {
12 class PicturePileImpl;
13 class Region;
14 struct RenderingStats;
15
16 class CC_EXPORT PicturePile : public PicturePileBase {
17 public:
18 PicturePile();
19
20 // Re-record parts of the picture that are invalid.
21 // Invalidations are in layer space.
22 void Update(
23 ContentLayerClient* painter,
24 SkColor background_color,
25 const Region& invalidation,
26 gfx::Rect visible_layer_rect,
27 RenderingStats* stats);
28
29 void set_num_raster_threads(int num_raster_threads) {
30 num_raster_threads_ = num_raster_threads;
31 }
32
33 void set_slow_down_raster_scale_factor(int factor) {
34 slow_down_raster_scale_factor_for_debug_ = factor;
35 }
36
37 private:
38 virtual ~PicturePile();
39 friend class PicturePileImpl;
40
41 // Add an invalidation to this picture list. If the list needs to be
42 // entirely recreated, leave it empty. Do not call this on an empty list.
43 void InvalidateRect(
44 PictureList& picture_list,
45 gfx::Rect invalidation);
46
47 DISALLOW_COPY_AND_ASSIGN(PicturePile);
48 };
49
50 } // namespace cc
51
52 #endif // CC_PICTURE_PILE_H_
OLDNEW
« no previous file with comments | « cc/picture_layer_tiling_unittest.cc ('k') | cc/picture_pile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698