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

Unified Diff: ui/gl/gl_image.h

Issue 977853002: Reland of Revert of gpu: introduce glCopySubTextureCHROMIUM (patchset #1 id:1 of https://codereview… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Apply image optimization to CopySubTexture. move glValidateProgram Created 5 years, 10 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: ui/gl/gl_image.h
diff --git a/ui/gl/gl_image.h b/ui/gl/gl_image.h
index 214241396becbf60949ed713278eb9ee3323c782..289ec60226df4dc526ac9f578f09cfc873406279 100644
--- a/ui/gl/gl_image.h
+++ b/ui/gl/gl_image.h
@@ -33,8 +33,8 @@ class GL_EXPORT GLImage : public base::RefCounted<GLImage> {
// Release image from texture currently bound to |target|.
virtual void ReleaseTexImage(unsigned target) = 0;
- // Copy image to texture currently bound to |target|.
- virtual bool CopyTexImage(unsigned target) = 0;
+ // Copy subimage to texture currently bound to |target|.
+ virtual bool CopyTexSubImage(unsigned target, int xoffset, int yoffset) = 0;
reveman 2015/03/04 20:56:46 We don't really need xoffset and yoffset for this
dshwang 2015/03/04 21:02:15 Indeed. However, implementation can handle offsets
// Called before the texture is used for drawing.
virtual void WillUseTexImage() = 0;

Powered by Google App Engine
This is Rietveld 408576698