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

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

Issue 1576023002: Make readback of alpha channel work for RGBA. (Closed) Base URL: https://skia.googlesource.com/skia.git@swiz
Patch Set: more 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 unified diff | Download patch
« no previous file with comments | « src/gpu/gl/GrGLCaps.cpp ('k') | src/gpu/gl/GrGLGpu.cpp » ('j') | 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 2011 Google Inc. 2 * Copyright 2011 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 GrGLGpu_DEFINED 8 #ifndef GrGLGpu_DEFINED
9 #define GrGLGpu_DEFINED 9 #define GrGLGpu_DEFINED
10 10
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 bool flushGLState(const DrawArgs&); 193 bool flushGLState(const DrawArgs&);
194 194
195 // Sets up vertex attribute pointers and strides. On return indexOffsetInByt es gives the offset 195 // Sets up vertex attribute pointers and strides. On return indexOffsetInByt es gives the offset
196 // an into the index buffer. It does not account for vertices.startIndex() b ut rather the start 196 // an into the index buffer. It does not account for vertices.startIndex() b ut rather the start
197 // index is relative to the returned offset. 197 // index is relative to the returned offset.
198 void setupGeometry(const GrPrimitiveProcessor&, 198 void setupGeometry(const GrPrimitiveProcessor&,
199 const GrNonInstancedVertices& vertices, 199 const GrNonInstancedVertices& vertices,
200 size_t* indexOffsetInBytes); 200 size_t* indexOffsetInBytes);
201 201
202 // Subclasses should call this to flush the blend state. 202 // Subclasses should call this to flush the blend state.
203 void flushBlend(const GrXferProcessor::BlendInfo& blendInfo); 203 void flushBlend(const GrXferProcessor::BlendInfo& blendInfo,
204 const GrSwizzle& shaderOutputSwizzle);
204 205
205 bool hasExtension(const char* ext) const { return fGLContext->hasExtension(e xt); } 206 bool hasExtension(const char* ext) const { return fGLContext->hasExtension(e xt); }
206 207
207 void copySurfaceAsDraw(GrSurface* dst, 208 void copySurfaceAsDraw(GrSurface* dst,
208 GrSurface* src, 209 GrSurface* src,
209 const SkIRect& srcRect, 210 const SkIRect& srcRect,
210 const SkIPoint& dstPoint); 211 const SkIPoint& dstPoint);
211 void copySurfaceAsCopyTexSubImage(GrSurface* dst, 212 void copySurfaceAsCopyTexSubImage(GrSurface* dst,
212 GrSurface* src, 213 GrSurface* src,
213 const SkIRect& srcRect, 214 const SkIRect& srcRect,
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 SkASSERT(target == GR_GL_TEXTURE_EXTERNAL); 542 SkASSERT(target == GR_GL_TEXTURE_EXTERNAL);
542 return 1; 543 return 1;
543 } 544 }
544 } 545 }
545 546
546 typedef GrGpu INHERITED; 547 typedef GrGpu INHERITED;
547 friend class GrGLPathRendering; // For accessing setTextureUnit. 548 friend class GrGLPathRendering; // For accessing setTextureUnit.
548 }; 549 };
549 550
550 #endif 551 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLCaps.cpp ('k') | src/gpu/gl/GrGLGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698