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

Side by Side Diff: src/gpu/gl/GrGLUtil.h

Issue 1531493002: Avoid pixel GPU readback in saveLayerWithPickup (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Quiet compiler complaints Created 5 years 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 unified diff | Download patch
« no previous file with comments | « src/gpu/gl/GrGLDefines.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2012 Google Inc. 2 * Copyright 2012 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef GrGLUtil_DEFINED 8 #ifndef GrGLUtil_DEFINED
9 #define GrGLUtil_DEFINED 9 #define GrGLUtil_DEFINED
10 10
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 *(p) = GR_GL_INIT_ZERO; \ 74 *(p) = GR_GL_INIT_ZERO; \
75 GR_GL_CALL(gl, GetIntegerv(e, p)); \ 75 GR_GL_CALL(gl, GetIntegerv(e, p)); \
76 } while (0) 76 } while (0)
77 77
78 #define GR_GL_GetFramebufferAttachmentParameteriv(gl, t, a, pname, p) \ 78 #define GR_GL_GetFramebufferAttachmentParameteriv(gl, t, a, pname, p) \
79 do { \ 79 do { \
80 *(p) = GR_GL_INIT_ZERO; \ 80 *(p) = GR_GL_INIT_ZERO; \
81 GR_GL_CALL(gl, GetFramebufferAttachmentParameteriv(t, a, pname, p)); \ 81 GR_GL_CALL(gl, GetFramebufferAttachmentParameteriv(t, a, pname, p)); \
82 } while (0) 82 } while (0)
83 83
84 #define GR_GL_GetNamedFramebufferAttachmentParameteriv(gl, fb, a, pname, p) \
85 do { \
86 *(p) = GR_GL_INIT_ZERO; \
87 GR_GL_CALL(gl, GetNamedFramebufferAttachmentParameteriv(fb, a, pname, p) ); \
88 } while (0)
89
84 #define GR_GL_GetRenderbufferParameteriv(gl, t, pname, p) \ 90 #define GR_GL_GetRenderbufferParameteriv(gl, t, pname, p) \
85 do { \ 91 do { \
86 *(p) = GR_GL_INIT_ZERO; \ 92 *(p) = GR_GL_INIT_ZERO; \
87 GR_GL_CALL(gl, GetRenderbufferParameteriv(t, pname, p)); \ 93 GR_GL_CALL(gl, GetRenderbufferParameteriv(t, pname, p)); \
88 } while (0) 94 } while (0)
89 95
90 #define GR_GL_GetTexLevelParameteriv(gl, t, l, pname, p) \ 96 #define GR_GL_GetTexLevelParameteriv(gl, t, l, pname, p) \
91 do { \ 97 do { \
92 *(p) = GR_GL_INIT_ZERO; \ 98 *(p) = GR_GL_INIT_ZERO; \
93 GR_GL_CALL(gl, GetTexLevelParameteriv(t, l, pname, p)); \ 99 GR_GL_CALL(gl, GetTexLevelParameteriv(t, l, pname, p)); \
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 GR_GL_LOG_CALLS_IMPL(X); \ 210 GR_GL_LOG_CALLS_IMPL(X); \
205 } while (false) 211 } while (false)
206 212
207 // call glGetError without doing a redundant error check or logging. 213 // call glGetError without doing a redundant error check or logging.
208 #define GR_GL_GET_ERROR(IFACE) (IFACE)->fFunctions.fGetError() 214 #define GR_GL_GET_ERROR(IFACE) (IFACE)->fFunctions.fGetError()
209 215
210 GrGLenum GrToGLStencilFunc(GrStencilFunc basicFunc); 216 GrGLenum GrToGLStencilFunc(GrStencilFunc basicFunc);
211 217
212 218
213 #endif 219 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLDefines.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698