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 22 matching lines...) Expand all Loading... |
33 void PlaybackToSharedCanvas(SkCanvas* canvas, | 33 void PlaybackToSharedCanvas(SkCanvas* canvas, |
34 const gfx::Rect& canvas_rect, | 34 const gfx::Rect& canvas_rect, |
35 float contents_scale) const override; | 35 float contents_scale) const override; |
36 void PerformSolidColorAnalysis( | 36 void PerformSolidColorAnalysis( |
37 const gfx::Rect& content_rect, | 37 const gfx::Rect& content_rect, |
38 float contents_scale, | 38 float contents_scale, |
39 RasterSource::SolidColorAnalysis* analysis) const override; | 39 RasterSource::SolidColorAnalysis* analysis) const override; |
40 bool IsSolidColor() const override; | 40 bool IsSolidColor() const override; |
41 SkColor GetSolidColor() const override; | 41 SkColor GetSolidColor() const override; |
42 gfx::Size GetSize() const override; | 42 gfx::Size GetSize() const override; |
43 void GatherPixelRefs(const gfx::Rect& content_rect, | 43 void GatherPixelRefs( |
44 float contents_scale, | 44 const gfx::Rect& content_rect, |
45 std::vector<SkPixelRef*>* pixel_refs) const override; | 45 float contents_scale, |
| 46 std::vector<skia::PositionPixelRef>* pixel_refs) const override; |
46 bool CoversRect(const gfx::Rect& content_rect, | 47 bool CoversRect(const gfx::Rect& content_rect, |
47 float contents_scale) const override; | 48 float contents_scale) const override; |
48 bool HasRecordings() const override; | 49 bool HasRecordings() const override; |
49 void SetShouldAttemptToUseDistanceFieldText() override; | 50 void SetShouldAttemptToUseDistanceFieldText() override; |
50 bool ShouldAttemptToUseDistanceFieldText() const override; | 51 bool ShouldAttemptToUseDistanceFieldText() const override; |
51 void DidBeginTracing() override; | 52 void DidBeginTracing() override; |
52 void AsValueInto(base::trace_event::TracedValue* array) const override; | 53 void AsValueInto(base::trace_event::TracedValue* array) const override; |
53 skia::RefPtr<SkPicture> GetFlattenedPicture() override; | 54 skia::RefPtr<SkPicture> GetFlattenedPicture() override; |
54 size_t GetPictureMemoryUsage() const override; | 55 size_t GetPictureMemoryUsage() const override; |
55 bool CanUseLCDText() const override; | 56 bool CanUseLCDText() const override; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 const gfx::Rect& canvas_bitmap_rect, | 93 const gfx::Rect& canvas_bitmap_rect, |
93 const gfx::Rect& canvas_playback_rect, | 94 const gfx::Rect& canvas_playback_rect, |
94 float contents_scale) const; | 95 float contents_scale) const; |
95 | 96 |
96 DISALLOW_COPY_AND_ASSIGN(DisplayListRasterSource); | 97 DISALLOW_COPY_AND_ASSIGN(DisplayListRasterSource); |
97 }; | 98 }; |
98 | 99 |
99 } // namespace cc | 100 } // namespace cc |
100 | 101 |
101 #endif // CC_PLAYBACK_DISPLAY_LIST_RASTER_SOURCE_H_ | 102 #endif // CC_PLAYBACK_DISPLAY_LIST_RASTER_SOURCE_H_ |
OLD | NEW |