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

Side by Side Diff: cc/raster/raster_source.h

Issue 2877483003: Implements core logic for Pixel Canvas (Closed)
Patch Set: Sync with ToT Created 3 years, 4 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
« no previous file with comments | « cc/layers/recording_source.cc ('k') | cc/raster/raster_source.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_RASTER_RASTER_SOURCE_H_ 5 #ifndef CC_RASTER_RASTER_SOURCE_H_
6 #define CC_RASTER_RASTER_SOURCE_H_ 6 #define CC_RASTER_RASTER_SOURCE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 const scoped_refptr<DisplayItemList> display_list_; 136 const scoped_refptr<DisplayItemList> display_list_;
137 const size_t painter_reported_memory_usage_; 137 const size_t painter_reported_memory_usage_;
138 const SkColor background_color_; 138 const SkColor background_color_;
139 const bool requires_clear_; 139 const bool requires_clear_;
140 const bool is_solid_color_; 140 const bool is_solid_color_;
141 const SkColor solid_color_; 141 const SkColor solid_color_;
142 const gfx::Rect recorded_viewport_; 142 const gfx::Rect recorded_viewport_;
143 const gfx::Size size_; 143 const gfx::Size size_;
144 const bool clear_canvas_with_debug_color_; 144 const bool clear_canvas_with_debug_color_;
145 const int slow_down_raster_scale_factor_for_debug_; 145 const int slow_down_raster_scale_factor_for_debug_;
146 const float recording_scale_factor_;
146 147
147 private: 148 private:
148 void RasterCommon(SkCanvas* canvas, 149 void RasterCommon(SkCanvas* canvas,
149 ImageProvider* image_provider = nullptr, 150 ImageProvider* image_provider = nullptr,
150 SkPicture::AbortCallback* callback = nullptr) const; 151 SkPicture::AbortCallback* callback = nullptr) const;
151 152
152 void ClearCanvasForPlayback(PaintCanvas* canvas) const; 153 void ClearCanvasForPlayback(PaintCanvas* canvas) const;
153 154
154 DISALLOW_COPY_AND_ASSIGN(RasterSource); 155 DISALLOW_COPY_AND_ASSIGN(RasterSource);
155 }; 156 };
156 157
157 } // namespace cc 158 } // namespace cc
158 159
159 #endif // CC_RASTER_RASTER_SOURCE_H_ 160 #endif // CC_RASTER_RASTER_SOURCE_H_
OLDNEW
« no previous file with comments | « cc/layers/recording_source.cc ('k') | cc/raster/raster_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698