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_RESOURCES_DISPLAY_LIST_RASTER_SOURCE_H_ | 5 #ifndef CC_RESOURCES_DISPLAY_LIST_RASTER_SOURCE_H_ |
6 #define CC_RESOURCES_DISPLAY_LIST_RASTER_SOURCE_H_ | 6 #define CC_RESOURCES_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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 // SkDrawPictureCallback, 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 SkDrawPictureCallback* callback, |
90 const gfx::Rect& canvas_rect, | 90 const gfx::Rect& canvas_rect, |
91 float contents_scale, | 91 float contents_scale) const; |
92 bool is_analysis) const; | |
93 | 92 |
94 DISALLOW_COPY_AND_ASSIGN(DisplayListRasterSource); | 93 DISALLOW_COPY_AND_ASSIGN(DisplayListRasterSource); |
95 }; | 94 }; |
96 | 95 |
97 } // namespace cc | 96 } // namespace cc |
98 | 97 |
99 #endif // CC_RESOURCES_DISPLAY_LIST_RASTER_SOURCE_H_ | 98 #endif // CC_RESOURCES_DISPLAY_LIST_RASTER_SOURCE_H_ |
OLD | NEW |