| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |