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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 GrPixelConfig config, GrBuffer* transferBuffer, | 213 GrPixelConfig config, GrBuffer* transferBuffer, |
214 size_t offset, size_t rowBytes) override; | 214 size_t offset, size_t rowBytes) override; |
215 | 215 |
216 void onResolveRenderTarget(GrRenderTarget* target) override; | 216 void onResolveRenderTarget(GrRenderTarget* target) override; |
217 | 217 |
218 bool onCopySurface(GrSurface* dst, | 218 bool onCopySurface(GrSurface* dst, |
219 GrSurface* src, | 219 GrSurface* src, |
220 const SkIRect& srcRect, | 220 const SkIRect& srcRect, |
221 const SkIPoint& dstPoint) override; | 221 const SkIPoint& dstPoint) override; |
222 | 222 |
223 void onGetMultisampleSpecs(GrRenderTarget*, const GrStencilSettings&, | 223 void onGetMultisampleSpecs(GrRenderTarget*, |
224 int* effectiveSampleCnt, SamplePattern*) override
; | 224 const GrStencilSettings&, |
| 225 int* effectiveSampleCnt, |
| 226 SkAutoTDeleteArray<SkPoint>* sampleLocations) ove
rride; |
225 | 227 |
226 // binds texture unit in GL | 228 // binds texture unit in GL |
227 void setTextureUnit(int unitIdx); | 229 void setTextureUnit(int unitIdx); |
228 | 230 |
229 void setTextureSwizzle(int unitIdx, GrGLenum target, const GrGLenum swizzle[
]); | 231 void setTextureSwizzle(int unitIdx, GrGLenum target, const GrGLenum swizzle[
]); |
230 | 232 |
231 // Flushes state from GrPipeline to GL. Returns false if the state couldn't
be set. | 233 // Flushes state from GrPipeline to GL. Returns false if the state couldn't
be set. |
232 bool flushGLState(const GrPipeline& pipeline, const GrPrimitiveProcessor& pr
imProc); | 234 bool flushGLState(const GrPipeline& pipeline, const GrPrimitiveProcessor& pr
imProc); |
233 | 235 |
234 // Sets up vertex attribute pointers and strides. On return indexOffsetInByt
es gives the offset | 236 // Sets up vertex attribute pointers and strides. On return indexOffsetInByt
es gives the offset |
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
596 bool fPLSHasBeenUsed; | 598 bool fPLSHasBeenUsed; |
597 | 599 |
598 float fHWMinSampleShading; | 600 float fHWMinSampleShading; |
599 | 601 |
600 typedef GrGpu INHERITED; | 602 typedef GrGpu INHERITED; |
601 friend class GrGLPathRendering; // For accessing setTextureUnit. | 603 friend class GrGLPathRendering; // For accessing setTextureUnit. |
602 friend class gr_instanced::GLInstancedRendering; // For accessing flushGLSta
te. | 604 friend class gr_instanced::GLInstancedRendering; // For accessing flushGLSta
te. |
603 }; | 605 }; |
604 | 606 |
605 #endif | 607 #endif |
OLD | NEW |