| OLD | NEW |
| 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_PLAYBACK_DISPLAY_LIST_RASTER_SOURCE_H_ | 5 #ifndef CC_PLAYBACK_DISPLAY_LIST_RASTER_SOURCE_H_ |
| 6 #define CC_PLAYBACK_DISPLAY_LIST_RASTER_SOURCE_H_ | 6 #define CC_PLAYBACK_DISPLAY_LIST_RASTER_SOURCE_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 const gfx::Rect recorded_viewport_; | 73 const gfx::Rect recorded_viewport_; |
| 74 const gfx::Size size_; | 74 const gfx::Size size_; |
| 75 const bool clear_canvas_with_debug_color_; | 75 const bool clear_canvas_with_debug_color_; |
| 76 const int slow_down_raster_scale_factor_for_debug_; | 76 const int slow_down_raster_scale_factor_for_debug_; |
| 77 // TODO(enne/vmiura): this has a read/write race between raster and compositor | 77 // TODO(enne/vmiura): this has a read/write race between raster and compositor |
| 78 // threads with multi-threaded Ganesh. Make this const or remove it. | 78 // threads with multi-threaded Ganesh. Make this const or remove it. |
| 79 bool should_attempt_to_use_distance_field_text_; | 79 bool should_attempt_to_use_distance_field_text_; |
| 80 | 80 |
| 81 private: | 81 private: |
| 82 // Called when analyzing a tile. We can use AnalysisCanvas as | 82 // Called when analyzing a tile. We can use AnalysisCanvas as |
| 83 // SkDrawPictureCallback, which allows us to early out from analysis. | 83 // SkPicture::AbortCallback, which allows us to early out from analysis. |
| 84 void RasterForAnalysis(skia::AnalysisCanvas* canvas, | 84 void RasterForAnalysis(skia::AnalysisCanvas* canvas, |
| 85 const gfx::Rect& canvas_rect, | 85 const gfx::Rect& canvas_rect, |
| 86 float contents_scale) const; | 86 float contents_scale) const; |
| 87 | 87 |
| 88 void RasterCommon(SkCanvas* canvas, | 88 void RasterCommon(SkCanvas* canvas, |
| 89 SkDrawPictureCallback* callback, | 89 SkPicture::AbortCallback* callback, |
| 90 const gfx::Rect& canvas_rect, | 90 const gfx::Rect& canvas_rect, |
| 91 float contents_scale) const; | 91 float contents_scale) const; |
| 92 | 92 |
| 93 DISALLOW_COPY_AND_ASSIGN(DisplayListRasterSource); | 93 DISALLOW_COPY_AND_ASSIGN(DisplayListRasterSource); |
| 94 }; | 94 }; |
| 95 | 95 |
| 96 } // namespace cc | 96 } // namespace cc |
| 97 | 97 |
| 98 #endif // CC_PLAYBACK_DISPLAY_LIST_RASTER_SOURCE_H_ | 98 #endif // CC_PLAYBACK_DISPLAY_LIST_RASTER_SOURCE_H_ |
| OLD | NEW |