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

Unified Diff: cc/resources/display_list_raster_source.h

Issue 913203006: cc: Calculate "can use lcd text" on the compositor thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months 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 side-by-side diff with in-line comments
Download patch
Index: cc/resources/display_list_raster_source.h
diff --git a/cc/resources/display_list_raster_source.h b/cc/resources/display_list_raster_source.h
index f095231381858bcde5f44c6b1e71bd3f51fdb2bd..576b22f63ea447a00e36fb1d48b5d0e15f885994 100644
--- a/cc/resources/display_list_raster_source.h
+++ b/cc/resources/display_list_raster_source.h
@@ -21,9 +21,9 @@ class DisplayItemList;
class CC_EXPORT DisplayListRasterSource : public RasterSource {
public:
- static scoped_refptr<DisplayListRasterSource> Create();
static scoped_refptr<DisplayListRasterSource>
- CreateFromDisplayListRecordingSource(const DisplayListRecordingSource* other);
+ CreateFromDisplayListRecordingSource(const DisplayListRecordingSource* other,
+ bool can_use_lcd_text);
// RasterSource overrides.
void PlaybackToCanvas(SkCanvas* canvas,
@@ -52,10 +52,14 @@ class CC_EXPORT DisplayListRasterSource : public RasterSource {
skia::RefPtr<SkPicture> GetFlattenedPicture() override;
size_t GetPictureMemoryUsage() const override;
bool CanUseLCDText() const override;
+ scoped_refptr<RasterSource> CreateCloneWithoutLCDText() const override;
protected:
DisplayListRasterSource();
- explicit DisplayListRasterSource(const DisplayListRecordingSource* other);
+ explicit DisplayListRasterSource(const DisplayListRecordingSource* other,
Ian Vollick 2015/02/18 09:12:10 nit: don't need the explicits.
enne (OOO) 2015/02/18 19:22:23 Welcome to C++11! I'll un-explicit them for consi
Ian Vollick 2015/02/18 19:58:13 Oh cool! Sorry, I'd assumed this was an oversight
+ bool can_use_lcd_text);
+ explicit DisplayListRasterSource(const DisplayListRasterSource* other,
+ bool can_use_lcd_text);
~DisplayListRasterSource() override;
// These members are const as this raster source may be in use on another

Powered by Google App Engine
This is Rietveld 408576698