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

Unified Diff: Source/platform/graphics/gpu/DrawingBuffer.h

Issue 254453002: Fix WebGL context restoration logic. The retry mechanism was broken when the ownership of the WebGr… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added more safety checks upon context restoration. Created 6 years, 8 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: Source/platform/graphics/gpu/DrawingBuffer.h
diff --git a/Source/platform/graphics/gpu/DrawingBuffer.h b/Source/platform/graphics/gpu/DrawingBuffer.h
index b74f4cf2fbb0ebd5241016bf5986b8ea396a1b68..5fc460a7ad373daa01d7ab44b4b2908d6ade9344 100644
--- a/Source/platform/graphics/gpu/DrawingBuffer.h
+++ b/Source/platform/graphics/gpu/DrawingBuffer.h
@@ -53,6 +53,7 @@ class WebLayer;
}
namespace WebCore {
+class Extensions3DUtil;
class ImageData;
class ImageBuffer;
@@ -139,8 +140,11 @@ public:
PassRefPtr<Uint8ClampedArray> paintRenderingResultsToImageData(int&, int&);
private:
- DrawingBuffer(PassOwnPtr<blink::WebGraphicsContext3D>, bool multisampleExtensionSupported,
- bool packedDepthStencilExtensionSupported, PreserveDrawingBuffer, PassRefPtr<ContextEvictionManager>);
+ DrawingBuffer(
+ PassOwnPtr<blink::WebGraphicsContext3D>,
+ PassOwnPtr<Extensions3DUtil>,
+ bool multisampleExtensionSupported,
+ bool packedDepthStencilExtensionSupported, PreserveDrawingBuffer, PassRefPtr<ContextEvictionManager>);
bool initialize(const IntSize&);
void releaseResources();
@@ -196,6 +200,7 @@ private:
GLenum m_activeTextureUnit;
OwnPtr<blink::WebGraphicsContext3D> m_context;
+ OwnPtr<Extensions3DUtil> m_extensionsUtil;
IntSize m_size;
bool m_multisampleExtensionSupported;
bool m_packedDepthStencilExtensionSupported;
« no previous file with comments | « Source/core/html/canvas/WebGLRenderingContextBase.cpp ('k') | Source/platform/graphics/gpu/DrawingBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698