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

Unified Diff: cc/playback/display_list_raster_source.h

Issue 1839143004: Limit image filtering during scale animations Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « cc/layers/picture_layer_impl.cc ('k') | cc/playback/display_list_raster_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/playback/display_list_raster_source.h
diff --git a/cc/playback/display_list_raster_source.h b/cc/playback/display_list_raster_source.h
index f9df1964f66c6208065da73aeef6d463be33424e..78837ea347c88f4d2255b61ddb4e427d8bd16682 100644
--- a/cc/playback/display_list_raster_source.h
+++ b/cc/playback/display_list_raster_source.h
@@ -118,6 +118,12 @@ class CC_EXPORT DisplayListRasterSource
bool OnMemoryDump(const base::trace_event::MemoryDumpArgs& args,
base::trace_event::ProcessMemoryDump* pmd) override;
+ enum class ImageScalingOptimization {
+ Animation, // Optimize for smooth/continuous transitions.
+ Static, // Optimize for high-quality static content.
+ };
+ void SetImageScalingOptimization(ImageScalingOptimization);
+
protected:
friend class base::RefCountedThreadSafe<DisplayListRasterSource>;
@@ -169,6 +175,8 @@ class CC_EXPORT DisplayListRasterSource
// Used to ensure that memory dump logic always happens on the same thread.
base::ThreadChecker memory_dump_thread_checker_;
+ ImageScalingOptimization image_scaling_optimization_;
+
DISALLOW_COPY_AND_ASSIGN(DisplayListRasterSource);
};
« no previous file with comments | « cc/layers/picture_layer_impl.cc ('k') | cc/playback/display_list_raster_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698