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

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

Issue 12388095: cc: Merge GatherPixelRefs and AnalyzeInRect (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 | « no previous file | cc/resources/picture_pile_impl.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_IMPL_H_ 5 #ifndef CC_RESOURCES_PICTURE_PILE_IMPL_H_
6 #define CC_RESOURCES_PICTURE_PILE_IMPL_H_ 6 #define CC_RESOURCES_PICTURE_PILE_IMPL_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 10
(...skipping 30 matching lines...) Expand all
41 41
42 skia::RefPtr<SkPicture> GetFlattenedPicture(); 42 skia::RefPtr<SkPicture> GetFlattenedPicture();
43 43
44 struct Analysis { 44 struct Analysis {
45 Analysis(); 45 Analysis();
46 46
47 bool is_solid_color; 47 bool is_solid_color;
48 bool is_transparent; 48 bool is_transparent;
49 bool is_cheap_to_raster; 49 bool is_cheap_to_raster;
50 SkColor solid_color; 50 SkColor solid_color;
51
52 std::list<skia::LazyPixelRef*> lazy_pixel_refs;
Sami 2013/03/18 17:33:19 Can we also use the typedef from AnalysisCanvas he
51 }; 53 };
52 54
53 void AnalyzeInRect(const gfx::Rect& content_rect, 55 void AnalyzeInRect(const gfx::Rect& content_rect,
54 float contents_scale, 56 float contents_scale,
55 Analysis* analysis); 57 Analysis* analysis);
56 58
57 protected: 59 protected:
58 friend class PicturePile; 60 friend class PicturePile;
59 61
60 PicturePileImpl(); 62 PicturePileImpl();
(...skipping 19 matching lines...) Expand all
80 // This guarantees thread-safe access during the life 82 // This guarantees thread-safe access during the life
81 // time of a PicturePileImpl instance. 83 // time of a PicturePileImpl instance.
82 const ClonesForDrawing clones_for_drawing_; 84 const ClonesForDrawing clones_for_drawing_;
83 85
84 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl); 86 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl);
85 }; 87 };
86 88
87 } // namespace cc 89 } // namespace cc
88 90
89 #endif // CC_RESOURCES_PICTURE_PILE_IMPL_H_ 91 #endif // CC_RESOURCES_PICTURE_PILE_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/resources/picture_pile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698