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

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

Issue 1581403004: Fix crash in Canvas2DLayerBridge flushing + reliability metrics (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test fix Created 4 years, 11 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 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;
« 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