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

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

Issue 2495953002: Support uploads of sub-rectangles of canvases to 2D and 3D textures. (Closed)
Patch Set: Fixed regression in accelerated video-to-texture uploads. Marked Mac Intel failures. Created 4 years, 1 month 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: third_party/WebKit/Source/platform/graphics/ImageBuffer.h
diff --git a/third_party/WebKit/Source/platform/graphics/ImageBuffer.h b/third_party/WebKit/Source/platform/graphics/ImageBuffer.h
index 70ac54b82eee16e0e1c91b1110a61cee72bf1b33..ba8e471aab88383ec77a8955d99036c248abf69c 100644
--- a/third_party/WebKit/Source/platform/graphics/ImageBuffer.h
+++ b/third_party/WebKit/Source/platform/graphics/ImageBuffer.h
@@ -141,7 +141,7 @@ class PLATFORM_EXPORT ImageBuffer {
WebLayer* platformLayer() const;
// Destroys the TEXTURE_2D binding for the active texture unit of the passed
- // context.
+ // context. Assumes the destination texture has already been allocated.
// FIXME: Current implementations of this method only work with textures that
// are RGB or RGBA format, UNSIGNED_BYTE type and level 0, as specified in
// Extensions3D::canUseCopyTextureCHROMIUM().
@@ -151,7 +151,9 @@ class PLATFORM_EXPORT ImageBuffer {
GLenum destType,
GLint level,
bool premultiplyAlpha,
- bool flipY);
+ bool flipY,
+ const IntPoint& destPoint,
+ const IntRect& sourceSubRectangle);
bool copyRenderingResultsFromDrawingBuffer(DrawingBuffer*,
SourceDrawingBuffer);

Powered by Google App Engine
This is Rietveld 408576698