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

Side by Side Diff: cc/picture_pile_impl.h

Issue 12194015: cc: Rasterize cheap tiles immediately (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Trace event for cheap rasters that weren't. Created 7 years, 10 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
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_PICTURE_PILE_IMPL_H_ 5 #ifndef CC_PICTURE_PILE_IMPL_H_
6 #define CC_PICTURE_PILE_IMPL_H_ 6 #define CC_PICTURE_PILE_IMPL_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 10
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 std::list<skia::LazyPixelRef*>& pixel_refs); 42 std::list<skia::LazyPixelRef*>& pixel_refs);
43 43
44 void PushPropertiesTo(PicturePileImpl* other); 44 void PushPropertiesTo(PicturePileImpl* other);
45 45
46 skia::RefPtr<SkPicture> GetFlattenedPicture(); 46 skia::RefPtr<SkPicture> GetFlattenedPicture();
47 47
48 void set_slow_down_raster_scale_factor(int factor) { 48 void set_slow_down_raster_scale_factor(int factor) {
49 slow_down_raster_scale_factor_for_debug_ = factor; 49 slow_down_raster_scale_factor_for_debug_ = factor;
50 } 50 }
51 51
52 bool IsCheapInRect(gfx::Rect content_rect, float contents_scale) const;
53
52 protected: 54 protected:
53 friend class PicturePile; 55 friend class PicturePile;
54 56
55 PicturePileImpl(); 57 PicturePileImpl();
56 virtual ~PicturePileImpl(); 58 virtual ~PicturePileImpl();
57 59
58 typedef std::map<base::PlatformThreadId, scoped_refptr<PicturePileImpl> > 60 typedef std::map<base::PlatformThreadId, scoped_refptr<PicturePileImpl> >
59 CloneMap; 61 CloneMap;
60 CloneMap clones_; 62 CloneMap clones_;
61 63
62 int slow_down_raster_scale_factor_for_debug_; 64 int slow_down_raster_scale_factor_for_debug_;
63 65
64 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl); 66 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl);
65 }; 67 };
66 68
67 } // namespace cc 69 } // namespace cc
68 70
69 #endif // CC_PICTURE_PILE_IMPL_H_ 71 #endif // CC_PICTURE_PILE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698