Chromium Code Reviews

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

Issue 1520123002: Fix state restoration logic in canvas 2d wakeup from hibernation (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.
Jump to:
View side-by-side diff with in-line comments
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 0c303722fcb85f9fe9063886ec5aaed8965f2050..fa3461f8fd969edb3faa24fde9b28eccc8feabdf 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsTypes.h
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsTypes.h
@@ -77,6 +77,9 @@ enum OpacityMode {
enum AccelerationHint {
PreferAcceleration,
+ // The PreferAccelerationAfterVisibilityChange hint suggests we should switch back to acceleration
+ // in the context of the canvas becoming visible again.
+ PreferAccelerationAfterVisibilityChange,
PreferNoAcceleration,
};

Powered by Google App Engine