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

Unified Diff: src/gpu/gl/builders/GrGLProgramBuilder.cpp

Issue 1583863002: Beginning of support for texture rectangles. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Address comments Created 4 years, 11 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 | « src/gpu/gl/SkGLContext.cpp ('k') | src/gpu/glsl/GrGLSL.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/gl/builders/GrGLProgramBuilder.cpp
diff --git a/src/gpu/gl/builders/GrGLProgramBuilder.cpp b/src/gpu/gl/builders/GrGLProgramBuilder.cpp
index 4503d1a1972d49f2c259d31ae41b4d44b469175a..4a1b2e9ac5a5f16b0f8b4770a836ec3978c06533 100644
--- a/src/gpu/gl/builders/GrGLProgramBuilder.cpp
+++ b/src/gpu/gl/builders/GrGLProgramBuilder.cpp
@@ -74,6 +74,8 @@ static GrSLType get_sampler_type(const GrTextureAccess& access) {
GrGLTexture* glTexture = static_cast<GrGLTexture*>(access.getTexture());
if (glTexture->target() == GR_GL_TEXTURE_EXTERNAL) {
return kSamplerExternal_GrSLType;
+ } else if (glTexture->target() == GR_GL_TEXTURE_RECTANGLE) {
+ return kSampler2DRect_GrSLType;
} else {
SkASSERT(glTexture->target() == GR_GL_TEXTURE_2D);
return kSampler2D_GrSLType;
« no previous file with comments | « src/gpu/gl/SkGLContext.cpp ('k') | src/gpu/glsl/GrGLSL.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698