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

Unified Diff: third_party/WebKit/Source/platform/graphics/GraphicsTypes.h

Issue 1307143005: Make 2D canvas smarter about chosing whether or not to use GPU acceleration (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: migrated to chromium repo Created 5 years, 3 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: third_party/WebKit/Source/platform/graphics/GraphicsTypes.h
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsTypes.h b/third_party/WebKit/Source/platform/graphics/GraphicsTypes.h
index aceb2204ac878193b269c5ae90148feb217b91b9..ec8ce2dae5d50a8b3842ed2a125b3150029be689 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsTypes.h
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsTypes.h
@@ -75,6 +75,11 @@ enum OpacityMode {
Opaque,
};
+enum AccelerationHint {
+ PreferAcceleration,
+ PreferNoAcceleration,
+};
+
// TODO(junov): crbug.com/453113 relocate ShadowMode to CanvasRenderingContext2DState.h once
// GraphicsContext no longer uses it.
enum ShadowMode {

Powered by Google App Engine
This is Rietveld 408576698