| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 virtual void DidBeginTracing(); | 99 virtual void DidBeginTracing(); |
| 100 virtual void AsValueInto(base::trace_event::TracedValue* array) const; | 100 virtual void AsValueInto(base::trace_event::TracedValue* array) const; |
| 101 virtual skia::RefPtr<SkPicture> GetFlattenedPicture(); | 101 virtual skia::RefPtr<SkPicture> GetFlattenedPicture(); |
| 102 virtual size_t GetPictureMemoryUsage() const; | 102 virtual size_t GetPictureMemoryUsage() const; |
| 103 | 103 |
| 104 // Return true if LCD anti-aliasing may be used when rastering text. | 104 // Return true if LCD anti-aliasing may be used when rastering text. |
| 105 virtual bool CanUseLCDText() const; | 105 virtual bool CanUseLCDText() const; |
| 106 | 106 |
| 107 scoped_refptr<DisplayListRasterSource> CreateCloneWithoutLCDText() const; | 107 scoped_refptr<DisplayListRasterSource> CreateCloneWithoutLCDText() const; |
| 108 | 108 |
| 109 bool IsSolidColorTile(gfx::Rect content_rect, float scale, SkColor* color); |
| 110 |
| 109 protected: | 111 protected: |
| 110 friend class base::RefCountedThreadSafe<DisplayListRasterSource>; | 112 friend class base::RefCountedThreadSafe<DisplayListRasterSource>; |
| 111 | 113 |
| 112 DisplayListRasterSource(const DisplayListRecordingSource* other, | 114 DisplayListRasterSource(const DisplayListRecordingSource* other, |
| 113 bool can_use_lcd_text); | 115 bool can_use_lcd_text); |
| 114 DisplayListRasterSource(const DisplayListRasterSource* other, | 116 DisplayListRasterSource(const DisplayListRasterSource* other, |
| 115 bool can_use_lcd_text); | 117 bool can_use_lcd_text); |
| 116 virtual ~DisplayListRasterSource(); | 118 virtual ~DisplayListRasterSource(); |
| 117 | 119 |
| 118 // These members are const as this raster source may be in use on another | 120 // These members are const as this raster source may be in use on another |
| (...skipping 30 matching lines...) Expand all Loading... |
| 149 const gfx::Rect& canvas_bitmap_rect, | 151 const gfx::Rect& canvas_bitmap_rect, |
| 150 const gfx::Rect& canvas_playback_rect, | 152 const gfx::Rect& canvas_playback_rect, |
| 151 float contents_scale) const; | 153 float contents_scale) const; |
| 152 | 154 |
| 153 DISALLOW_COPY_AND_ASSIGN(DisplayListRasterSource); | 155 DISALLOW_COPY_AND_ASSIGN(DisplayListRasterSource); |
| 154 }; | 156 }; |
| 155 | 157 |
| 156 } // namespace cc | 158 } // namespace cc |
| 157 | 159 |
| 158 #endif // CC_PLAYBACK_DISPLAY_LIST_RASTER_SOURCE_H_ | 160 #endif // CC_PLAYBACK_DISPLAY_LIST_RASTER_SOURCE_H_ |
| OLD | NEW |