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

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

Issue 2877483003: Implements core logic for Pixel Canvas (Closed)
Patch Set: Resolving comments and sync with ToT Created 3 years, 5 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
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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 const scoped_refptr<DisplayItemList> display_list_; 146 const scoped_refptr<DisplayItemList> display_list_;
147 const size_t painter_reported_memory_usage_; 147 const size_t painter_reported_memory_usage_;
148 const SkColor background_color_; 148 const SkColor background_color_;
149 const bool requires_clear_; 149 const bool requires_clear_;
150 const bool is_solid_color_; 150 const bool is_solid_color_;
151 const SkColor solid_color_; 151 const SkColor solid_color_;
152 const gfx::Rect recorded_viewport_; 152 const gfx::Rect recorded_viewport_;
153 const gfx::Size size_; 153 const gfx::Size size_;
154 const bool clear_canvas_with_debug_color_; 154 const bool clear_canvas_with_debug_color_;
155 const int slow_down_raster_scale_factor_for_debug_; 155 const int slow_down_raster_scale_factor_for_debug_;
156 const float recording_scale_factor_;
156 157
157 // In practice, this is only set once before raster begins, so it's ok with 158 // In practice, this is only set once before raster begins, so it's ok with
158 // respect to threading. 159 // respect to threading.
159 ImageDecodeCache* image_decode_cache_; 160 ImageDecodeCache* image_decode_cache_;
160 161
161 private: 162 private:
162 void RasterCommon(SkCanvas* canvas, 163 void RasterCommon(SkCanvas* canvas,
163 SkPicture::AbortCallback* callback = nullptr) const; 164 SkPicture::AbortCallback* callback = nullptr) const;
164 165
165 void PrepareForPlaybackToCanvas(SkCanvas* canvas) const; 166 void PrepareForPlaybackToCanvas(SkCanvas* canvas) const;
166 167
167 DISALLOW_COPY_AND_ASSIGN(RasterSource); 168 DISALLOW_COPY_AND_ASSIGN(RasterSource);
168 }; 169 };
169 170
170 } // namespace cc 171 } // namespace cc
171 172
172 #endif // CC_RASTER_RASTER_SOURCE_H_ 173 #endif // CC_RASTER_RASTER_SOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698