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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 | 94 |
95 // Called by GrGLBuffer after its buffer object has been destroyed. | 95 // Called by GrGLBuffer after its buffer object has been destroyed. |
96 void notifyBufferReleased(const GrGLBuffer*); | 96 void notifyBufferReleased(const GrGLBuffer*); |
97 | 97 |
98 const GrGLContext* glContextForTesting() const override { | 98 const GrGLContext* glContextForTesting() const override { |
99 return &this->glContext(); | 99 return &this->glContext(); |
100 } | 100 } |
101 | 101 |
102 void clearStencil(GrRenderTarget*) override; | 102 void clearStencil(GrRenderTarget*) override; |
103 | 103 |
| 104 GrGpuCommandBuffer* createCommandBuffer(const GrRenderTarget& target, |
| 105 GrGpuCommandBuffer::LoadAndStoreOp c
olorOp, |
| 106 GrColor colorClear, |
| 107 GrGpuCommandBuffer::LoadAndStoreOp s
tencilOp, |
| 108 GrColor stencilClear) override; |
| 109 |
104 void invalidateBoundRenderTarget() { | 110 void invalidateBoundRenderTarget() { |
105 fHWBoundRenderTargetUniqueID = SK_InvalidUniqueID; | 111 fHWBoundRenderTargetUniqueID = SK_InvalidUniqueID; |
106 } | 112 } |
107 | 113 |
108 GrStencilAttachment* createStencilAttachmentForRenderTarget(const GrRenderTa
rget* rt, | 114 GrStencilAttachment* createStencilAttachmentForRenderTarget(const GrRenderTa
rget* rt, |
109 int width, | 115 int width, |
110 int height) over
ride; | 116 int height) over
ride; |
111 | 117 |
112 GrBackendObject createTestingOnlyBackendTexture(void* pixels, int w, int h, | 118 GrBackendObject createTestingOnlyBackendTexture(void* pixels, int w, int h, |
113 GrPixelConfig config) overri
de; | 119 GrPixelConfig config) overri
de; |
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
580 bool fHWPLSEnabled; | 586 bool fHWPLSEnabled; |
581 bool fPLSHasBeenUsed; | 587 bool fPLSHasBeenUsed; |
582 | 588 |
583 float fHWMinSampleShading; | 589 float fHWMinSampleShading; |
584 | 590 |
585 typedef GrGpu INHERITED; | 591 typedef GrGpu INHERITED; |
586 friend class GrGLPathRendering; // For accessing setTextureUnit. | 592 friend class GrGLPathRendering; // For accessing setTextureUnit. |
587 }; | 593 }; |
588 | 594 |
589 #endif | 595 #endif |
OLD | NEW |