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

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

Issue 10815070: Support copying a partial rectangle region from the compositing surface on Aura and GTK. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 8 years, 5 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 | « content/browser/renderer_host/test_render_view_host.cc ('k') | content/common/gpu/client/gl_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1e8d475596dc23516027f870bae00a97590b25a5..c204477124cce3ef4f9d8082d7d930371a784022 100644
--- a/content/common/gpu/client/gl_helper.h
+++ b/content/common/gpu/client/gl_helper.h
@@ -12,6 +12,7 @@
#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGraphicsContext3D.h"
namespace gfx {
+class Rect;
class Size;
}
@@ -27,12 +28,13 @@ class GLHelper {
WebKit::WebGraphicsContext3D* context() const;
- // Copies the contents of |src_texture| with the size of |src_size| into
- // |out|. The contents is transformed so that it fits in |dst_size|.
- // |callback| is invoked with the copy result when the copy operation has
- // completed.
+ // Copies the block of pixels specified with |src_subrect| from |src_texture|,
+ // scales it to |dst_size|, and writes it into |out|.
+ // |src_size| is the size of |src_texture|. |callback| is invoked with the
+ // copy result when the copy operation has completed.
void CopyTextureTo(WebKit::WebGLId src_texture,
const gfx::Size& src_size,
+ const gfx::Rect& src_subrect,
const gfx::Size& dst_size,
unsigned char* out,
const base::Callback<void(bool)>& callback);
« no previous file with comments | « content/browser/renderer_host/test_render_view_host.cc ('k') | content/common/gpu/client/gl_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698