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

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

Issue 2368333003: Improve speed of 2D canvas hibernation unit tests (Closed)
Patch Set: Created 4 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.h
diff --git a/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.h b/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.h
index fc94bdce70c3594061c505ef9cf0e4ef2eddb425..6e095af319fceee7c5a9873af799c8c86bf6c152 100644
--- a/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.h
+++ b/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.h
@@ -120,6 +120,7 @@ public:
void prepareSurfaceForPaintingIfNeeded();
bool isHidden() { return m_isHidden; }
OpacityMode opacityMode() { return m_opacityMode; }
+ void dontUseIdleSchedulingForTesting() { m_dontUseIdleSchedulingForTesting = true; }
void beginDestruction();
void hibernate();
@@ -259,6 +260,7 @@ private:
bool m_softwareRenderingWhileHidden;
bool m_surfaceCreationFailedAtLeastOnce = false;
bool m_hibernationScheduled = false;
+ bool m_dontUseIdleSchedulingForTesting = false;
friend class Canvas2DLayerBridgeTest;
friend class CanvasRenderingContext2DTest;
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698