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

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

Issue 13726013: Smart layer invalidation for LCD text. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed compile error Created 7 years, 8 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_set.cc ('k') | 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 #include <vector> 10 #include <vector>
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 std::list<skia::LazyPixelRef*>& pixel_refs); 43 std::list<skia::LazyPixelRef*>& pixel_refs);
44 44
45 skia::RefPtr<SkPicture> GetFlattenedPicture(); 45 skia::RefPtr<SkPicture> GetFlattenedPicture();
46 46
47 struct Analysis { 47 struct Analysis {
48 Analysis(); 48 Analysis();
49 ~Analysis(); 49 ~Analysis();
50 50
51 bool is_solid_color; 51 bool is_solid_color;
52 bool is_transparent; 52 bool is_transparent;
53 bool has_text;
53 bool is_cheap_to_raster; 54 bool is_cheap_to_raster;
54 SkColor solid_color; 55 SkColor solid_color;
55 56
56 skia::AnalysisCanvas::LazyPixelRefList lazy_pixel_refs; 57 skia::AnalysisCanvas::LazyPixelRefList lazy_pixel_refs;
57 }; 58 };
58 59
59 void AnalyzeInRect(const gfx::Rect& content_rect, 60 void AnalyzeInRect(const gfx::Rect& content_rect,
60 float contents_scale, 61 float contents_scale,
61 Analysis* analysis); 62 Analysis* analysis);
62 63
(...skipping 26 matching lines...) Expand all
89 // instance. This member variable must be last so that other member 90 // instance. This member variable must be last so that other member
90 // variables have already been initialized and can be clonable. 91 // variables have already been initialized and can be clonable.
91 const ClonesForDrawing clones_for_drawing_; 92 const ClonesForDrawing clones_for_drawing_;
92 93
93 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl); 94 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl);
94 }; 95 };
95 96
96 } // namespace cc 97 } // namespace cc
97 98
98 #endif // CC_RESOURCES_PICTURE_PILE_IMPL_H_ 99 #endif // CC_RESOURCES_PICTURE_PILE_IMPL_H_
OLDNEW
« no previous file with comments | « cc/resources/picture_layer_tiling_set.cc ('k') | cc/resources/picture_pile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698