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

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

Issue 1002523007: Removed arbitrary 4096 size limit on WebGL canvas backbuffers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Testing potential fix Created 5 years, 9 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 d2531168184b3acb2b53f3d106097debe43f2abf..99119f6918dae0b8ea3ecf4b0c32cfb2461a47d0 100644
--- a/Source/platform/graphics/gpu/DrawingBuffer.h
+++ b/Source/platform/graphics/gpu/DrawingBuffer.h
@@ -185,7 +185,7 @@ private:
void createSecondaryBuffers();
bool resizeFramebuffer(const IntSize&);
bool resizeMultisampleFramebuffer(const IntSize&);
- void resizeDepthStencil(const IntSize&);
+ bool resizeDepthStencil(const IntSize&);
// Bind to the m_framebufferBinding if it's not 0. Otherwise, bind to the default FBO.
void restoreFramebufferBinding();
@@ -219,7 +219,7 @@ private:
// By default, alignment is 4, the OpenGL default setting.
void texImage2DResourceSafe(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, GLint alignment = 4);
// Allocate buffer storage to be sent to compositor using either texImage2D or CHROMIUM_image based on available support.
- void allocateTextureMemory(TextureInfo*, const IntSize&);
+ bool allocateTextureMemory(TextureInfo*, const IntSize&);
void deleteChromiumImageForTexture(TextureInfo*);
PreserveDrawingBuffer m_preserveDrawingBuffer;
« 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