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 540ee0e3a22d0fd3f5163626faa11dc4f7ccf732..dc25f1d5a5fb941106f5d78484d026144aeb0142 100644 |
--- a/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.h |
+++ b/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.h |
@@ -111,8 +111,9 @@ public: |
HibernationEndedWithSwitchToBackgroundRendering = 8, |
HibernationEndedWithFallbackToSW = 9, |
HibernationEndedWithTeardown = 10, |
+ HibernationAbortedBecauseNoSurface = 11, |
- HibernationEventCount = 11, |
+ HibernationEventCount = 12, |
}; |
class PLATFORM_EXPORT Logger { |
@@ -131,6 +132,7 @@ private: |
void skipQueuedDrawCommands(); |
void flushRecordingOnly(); |
void unregisterTaskObserver(); |
+ void reportSurfaceCreationFailure(); |
// WebThread::TaskOberver implementation |
void willProcessTask() override; |
@@ -159,6 +161,7 @@ private: |
bool m_isRegisteredTaskObserver; |
bool m_renderingTaskCompletedForCurrentFrame; |
bool m_softwareRenderingWhileHidden; |
+ bool m_surfaceCreationFailedAtLeastOnce = false; |
friend class Canvas2DLayerBridgeTest; |