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: cc/picture_pile_impl.h

Issue 12388095: cc: Merge GatherPixelRefs and AnalyzeInRect (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: junov's review 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 | « no previous file | cc/picture_pile_impl.cc » ('j') | cc/tile_manager.cc » ('J')
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_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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 slow_down_raster_scale_factor_for_debug_ = factor; 48 slow_down_raster_scale_factor_for_debug_ = factor;
49 } 49 }
50 50
51 struct Analysis { 51 struct Analysis {
52 Analysis(); 52 Analysis();
53 53
54 bool is_solid_color; 54 bool is_solid_color;
55 bool is_transparent; 55 bool is_transparent;
56 bool is_cheap_to_raster; 56 bool is_cheap_to_raster;
57 SkColor solid_color; 57 SkColor solid_color;
58
59 std::list<skia::LazyPixelRef*> lazy_pixel_refs;
Sami 2013/03/18 12:14:33 Maybe use a LazyPixelRefList typedef to make the c
58 }; 60 };
59 61
60 void AnalyzeInRect(const gfx::Rect& content_rect, 62 void AnalyzeInRect(const gfx::Rect& content_rect,
61 float contents_scale, 63 float contents_scale,
62 Analysis* analysis); 64 Analysis* analysis);
63 65
64 protected: 66 protected:
65 friend class PicturePile; 67 friend class PicturePile;
66 68
67 PicturePileImpl(); 69 PicturePileImpl();
68 virtual ~PicturePileImpl(); 70 virtual ~PicturePileImpl();
69 71
70 typedef std::vector<scoped_refptr<PicturePileImpl> > PicturePileVector; 72 typedef std::vector<scoped_refptr<PicturePileImpl> > PicturePileVector;
71 PicturePileVector clones_; 73 PicturePileVector clones_;
72 74
73 int slow_down_raster_scale_factor_for_debug_; 75 int slow_down_raster_scale_factor_for_debug_;
74 76
75 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl); 77 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl);
76 }; 78 };
77 79
78 } // namespace cc 80 } // namespace cc
79 81
80 #endif // CC_PICTURE_PILE_IMPL_H_ 82 #endif // CC_PICTURE_PILE_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/picture_pile_impl.cc » ('j') | cc/tile_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698