Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Side by Side Diff: cc/playback/display_list_raster_source.h

Issue 1531013004: cc: Do solid color analysis before scheduling tiles. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | cc/playback/display_list_raster_source.cc » ('j') | cc/playback/display_list_raster_source.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698