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 23 matching lines...) Expand all Loading... |
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( | 43 void GatherPixelRefs( |
44 const gfx::Rect& content_rect, | 44 const gfx::Rect& layer_rect, |
45 float contents_scale, | |
46 std::vector<skia::PositionPixelRef>* pixel_refs) const override; | 45 std::vector<skia::PositionPixelRef>* pixel_refs) const override; |
47 bool CoversRect(const gfx::Rect& content_rect, | 46 bool CoversRect(const gfx::Rect& layer_rect) const override; |
48 float contents_scale) const override; | |
49 bool HasRecordings() const override; | 47 bool HasRecordings() const override; |
50 void SetShouldAttemptToUseDistanceFieldText() override; | 48 void SetShouldAttemptToUseDistanceFieldText() override; |
51 bool ShouldAttemptToUseDistanceFieldText() const override; | 49 bool ShouldAttemptToUseDistanceFieldText() const override; |
52 void DidBeginTracing() override; | 50 void DidBeginTracing() override; |
53 void AsValueInto(base::trace_event::TracedValue* array) const override; | 51 void AsValueInto(base::trace_event::TracedValue* array) const override; |
54 skia::RefPtr<SkPicture> GetFlattenedPicture() override; | 52 skia::RefPtr<SkPicture> GetFlattenedPicture() override; |
55 size_t GetPictureMemoryUsage() const override; | 53 size_t GetPictureMemoryUsage() const override; |
56 bool CanUseLCDText() const override; | 54 bool CanUseLCDText() const override; |
57 scoped_refptr<RasterSource> CreateCloneWithoutLCDText() const override; | 55 scoped_refptr<RasterSource> CreateCloneWithoutLCDText() const override; |
58 | 56 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 const gfx::Rect& canvas_bitmap_rect, | 91 const gfx::Rect& canvas_bitmap_rect, |
94 const gfx::Rect& canvas_playback_rect, | 92 const gfx::Rect& canvas_playback_rect, |
95 float contents_scale) const; | 93 float contents_scale) const; |
96 | 94 |
97 DISALLOW_COPY_AND_ASSIGN(DisplayListRasterSource); | 95 DISALLOW_COPY_AND_ASSIGN(DisplayListRasterSource); |
98 }; | 96 }; |
99 | 97 |
100 } // namespace cc | 98 } // namespace cc |
101 | 99 |
102 #endif // CC_PLAYBACK_DISPLAY_LIST_RASTER_SOURCE_H_ | 100 #endif // CC_PLAYBACK_DISPLAY_LIST_RASTER_SOURCE_H_ |
OLD | NEW |