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

Unified Diff: content/common/gpu/client/gl_helper.h

Issue 11558039: Subrect snapshot support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added intersect of src_size to actual texture_size Created 8 years 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: content/common/gpu/client/gl_helper.h
diff --git a/content/common/gpu/client/gl_helper.h b/content/common/gpu/client/gl_helper.h
index c7f161bb3a215ca7ef400b8bd0620e5d79adefa3..fc1dc8f454677116df04231bc56d02970cae1643 100644
--- a/content/common/gpu/client/gl_helper.h
+++ b/content/common/gpu/client/gl_helper.h
@@ -61,6 +61,7 @@ class GLHelper {
// the texture and |dst_size| is the size of the resulting copy.
WebKit::WebGLId CopyAndScaleTexture(WebKit::WebGLId texture,
const gfx::Size& src_size,
+ const gfx::Rect& src_rect,
const gfx::Size& dst_size,
bool vertically_flip_texture);

Powered by Google App Engine
This is Rietveld 408576698