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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 float contents_scale, | 43 float contents_scale, |
44 std::vector<SkPixelRef*>* pixel_refs) const override; | 44 std::vector<SkPixelRef*>* pixel_refs) const override; |
45 bool CoversRect(const gfx::Rect& content_rect, | 45 bool CoversRect(const gfx::Rect& content_rect, |
46 float contents_scale) const override; | 46 float contents_scale) const override; |
47 bool HasRecordings() const override; | 47 bool HasRecordings() const override; |
48 void SetShouldAttemptToUseDistanceFieldText() override; | 48 void SetShouldAttemptToUseDistanceFieldText() override; |
49 void SetBackgoundColor(SkColor background_color) override; | 49 void SetBackgoundColor(SkColor background_color) override; |
50 void SetRequiresClear(bool requires_clear) override; | 50 void SetRequiresClear(bool requires_clear) override; |
51 bool ShouldAttemptToUseDistanceFieldText() const override; | 51 bool ShouldAttemptToUseDistanceFieldText() const override; |
52 void DidBeginTracing() override; | 52 void DidBeginTracing() override; |
53 void AsValueInto(base::debug::TracedValue* array) const override; | 53 void AsValueInto(base::trace_event::TracedValue* array) const override; |
54 skia::RefPtr<SkPicture> GetFlattenedPicture() override; | 54 skia::RefPtr<SkPicture> GetFlattenedPicture() override; |
55 size_t GetPictureMemoryUsage() const override; | 55 size_t GetPictureMemoryUsage() const override; |
56 bool CanUseLCDText() const override; | 56 bool CanUseLCDText() const override; |
57 | 57 |
58 protected: | 58 protected: |
59 DisplayListRasterSource(); | 59 DisplayListRasterSource(); |
60 explicit DisplayListRasterSource(const DisplayListRecordingSource* other); | 60 explicit DisplayListRasterSource(const DisplayListRecordingSource* other); |
61 ~DisplayListRasterSource() override; | 61 ~DisplayListRasterSource() override; |
62 | 62 |
63 scoped_refptr<DisplayItemList> display_list_; | 63 scoped_refptr<DisplayItemList> display_list_; |
(...skipping 21 matching lines...) Expand all Loading... |
85 bool is_analysis) const; | 85 bool is_analysis) const; |
86 | 86 |
87 bool should_attempt_to_use_distance_field_text_; | 87 bool should_attempt_to_use_distance_field_text_; |
88 | 88 |
89 DISALLOW_COPY_AND_ASSIGN(DisplayListRasterSource); | 89 DISALLOW_COPY_AND_ASSIGN(DisplayListRasterSource); |
90 }; | 90 }; |
91 | 91 |
92 } // namespace cc | 92 } // namespace cc |
93 | 93 |
94 #endif // CC_RESOURCES_DISPLAY_LIST_RASTER_SOURCE_H_ | 94 #endif // CC_RESOURCES_DISPLAY_LIST_RASTER_SOURCE_H_ |
OLD | NEW |