| 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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 GrPixelConfig config, GrBuffer* transferBuffer, | 218 GrPixelConfig config, GrBuffer* transferBuffer, |
| 219 size_t offset, size_t rowBytes) override; | 219 size_t offset, size_t rowBytes) override; |
| 220 | 220 |
| 221 void onResolveRenderTarget(GrRenderTarget* target) override; | 221 void onResolveRenderTarget(GrRenderTarget* target) override; |
| 222 | 222 |
| 223 bool onCopySurface(GrSurface* dst, | 223 bool onCopySurface(GrSurface* dst, |
| 224 GrSurface* src, | 224 GrSurface* src, |
| 225 const SkIRect& srcRect, | 225 const SkIRect& srcRect, |
| 226 const SkIPoint& dstPoint) override; | 226 const SkIPoint& dstPoint) override; |
| 227 | 227 |
| 228 void onGetMultisampleSpecs(GrRenderTarget*, const GrStencilSettings&, | 228 void onQueryMultisampleSpecs(GrRenderTarget*, const GrStencilSettings&, |
| 229 int* effectiveSampleCnt, SamplePattern*) override
; | 229 int* effectiveSampleCnt, SamplePattern*) overri
de; |
| 230 | 230 |
| 231 // binds texture unit in GL | 231 // binds texture unit in GL |
| 232 void setTextureUnit(int unitIdx); | 232 void setTextureUnit(int unitIdx); |
| 233 | 233 |
| 234 void setTextureSwizzle(int unitIdx, GrGLenum target, const GrGLenum swizzle[
]); | 234 void setTextureSwizzle(int unitIdx, GrGLenum target, const GrGLenum swizzle[
]); |
| 235 | 235 |
| 236 // Flushes state from GrPipeline to GL. Returns false if the state couldn't
be set. | 236 // Flushes state from GrPipeline to GL. Returns false if the state couldn't
be set. |
| 237 // willDrawPoints must be true if point primitives will be rendered after se
tting the GL state. | 237 // willDrawPoints must be true if point primitives will be rendered after se
tting the GL state. |
| 238 bool flushGLState(const GrPipeline&, const GrPrimitiveProcessor&, bool willD
rawPoints); | 238 bool flushGLState(const GrPipeline&, const GrPrimitiveProcessor&, bool willD
rawPoints); |
| 239 | 239 |
| (...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 643 bool fPLSHasBeenUsed; | 643 bool fPLSHasBeenUsed; |
| 644 | 644 |
| 645 float fHWMinSampleShading; | 645 float fHWMinSampleShading; |
| 646 | 646 |
| 647 typedef GrGpu INHERITED; | 647 typedef GrGpu INHERITED; |
| 648 friend class GrGLPathRendering; // For accessing setTextureUnit. | 648 friend class GrGLPathRendering; // For accessing setTextureUnit. |
| 649 friend class gr_instanced::GLInstancedRendering; // For accessing flushGLSta
te. | 649 friend class gr_instanced::GLInstancedRendering; // For accessing flushGLSta
te. |
| 650 }; | 650 }; |
| 651 | 651 |
| 652 #endif | 652 #endif |
| OLD | NEW |