diff options
author | reveman <reveman@chromium.org> | 2015-05-25 23:05:34 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-05-26 06:06:05 +0000 |
commit | b6643fb0eedfc95a7990cba21769ceded5bfccaf (patch) | |
tree | 90ef6f92061fc7529438a1eb50f367cc4c918327 /gpu/blink | |
parent | c4fee66074f81982355073bf9703e50ce5f88c48 (diff) | |
download | chromium_src-b6643fb0eedfc95a7990cba21769ceded5bfccaf.zip chromium_src-b6643fb0eedfc95a7990cba21769ceded5bfccaf.tar.gz chromium_src-b6643fb0eedfc95a7990cba21769ceded5bfccaf.tar.bz2 |
gpu: Extend CopyTextureCHROMIUM with support for copying part of source texture.
This makes it possible to specify the area of the source texture
that is copied to the destination texture.
BUG=490889
TEST=gl_tests
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Review URL: https://codereview.chromium.org/1143373004
Cr-Commit-Position: refs/heads/master@{#331326}
Diffstat (limited to 'gpu/blink')
-rw-r--r-- | gpu/blink/webgraphicscontext3d_impl.cc | 8 | ||||
-rw-r--r-- | gpu/blink/webgraphicscontext3d_impl.h | 6 |
2 files changed, 11 insertions, 3 deletions
diff --git a/gpu/blink/webgraphicscontext3d_impl.cc b/gpu/blink/webgraphicscontext3d_impl.cc index 61aac86..f2e1434 100644 --- a/gpu/blink/webgraphicscontext3d_impl.cc +++ b/gpu/blink/webgraphicscontext3d_impl.cc @@ -827,13 +827,17 @@ DELEGATE_TO_GL_5(copyTextureCHROMIUM, WGC3Denum, WGC3Denum); -DELEGATE_TO_GL_5(copySubTextureCHROMIUM, +DELEGATE_TO_GL_9(copySubTextureCHROMIUM, CopySubTextureCHROMIUM, WGC3Denum, WebGLId, WebGLId, WGC3Dint, - WGC3Dint); + WGC3Dint, + WGC3Dint, + WGC3Dint, + WGC3Dsizei, + WGC3Dsizei); DELEGATE_TO_GL_3(bindUniformLocationCHROMIUM, BindUniformLocationCHROMIUM, WebGLId, WGC3Dint, const WGC3Dchar*) diff --git a/gpu/blink/webgraphicscontext3d_impl.h b/gpu/blink/webgraphicscontext3d_impl.h index 552f5fb..b11c1f4 100644 --- a/gpu/blink/webgraphicscontext3d_impl.h +++ b/gpu/blink/webgraphicscontext3d_impl.h @@ -528,7 +528,11 @@ class GPU_BLINK_EXPORT WebGraphicsContext3DImpl blink::WebGLId source_id, blink::WebGLId dest_id, blink::WGC3Dint xoffset, - blink::WGC3Dint yoffset) override; + blink::WGC3Dint yoffset, + blink::WGC3Dint x, + blink::WGC3Dint y, + blink::WGC3Dsizei width, + blink::WGC3Dsizei height) override; virtual void bindUniformLocationCHROMIUM(blink::WebGLId program, blink::WGC3Dint location, |