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

Unified Diff: src/gpu/gl/GrGLGpu.h

Issue 1451683002: Initial version of external_oes texture support and unit test (Closed) Base URL: https://skia.googlesource.com/skia.git@target
Patch Set: again Created 5 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
« no previous file with comments | « src/gpu/gl/GrGLDefines.h ('k') | src/gpu/gl/GrGLGpu.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/gl/GrGLGpu.h
diff --git a/src/gpu/gl/GrGLGpu.h b/src/gpu/gl/GrGLGpu.h
index c8da150a0da6c1d56636a455255a1196ea3627df..637a1cf16157af0a0b95f7802f181e6525b179fc 100644
--- a/src/gpu/gl/GrGLGpu.h
+++ b/src/gpu/gl/GrGLGpu.h
@@ -322,7 +322,7 @@ private:
SkAutoTUnref<GrGLContext> fGLContext;
- void createCopyProgram();
+ void createCopyPrograms();
// GL program-related state
ProgramCache* fProgramCache;
@@ -497,8 +497,17 @@ private:
GrGLint fTextureUniform;
GrGLint fTexCoordXformUniform;
GrGLint fPosXformUniform;
- GrGLuint fArrayBuffer;
- } fCopyProgram;
+ } fCopyPrograms[2];
+ GrGLuint fCopyProgramArrayBuffer;
+
+ static int TextureTargetToCopyProgramIdx(GrGLenum target) {
+ if (target == GR_GL_TEXTURE_2D) {
+ return 0;
+ } else {
+ SkASSERT(target == GR_GL_TEXTURE_EXTERNAL);
+ return 1;
+ }
+ }
TriState fMSAAEnabled;
« no previous file with comments | « src/gpu/gl/GrGLDefines.h ('k') | src/gpu/gl/GrGLGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698