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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 | 119 |
120 void invalidateBoundRenderTarget() { | 120 void invalidateBoundRenderTarget() { |
121 fHWBoundRenderTargetUniqueID = SK_InvalidUniqueID; | 121 fHWBoundRenderTargetUniqueID = SK_InvalidUniqueID; |
122 } | 122 } |
123 | 123 |
124 GrStencilAttachment* createStencilAttachmentForRenderTarget(const GrRenderTa
rget* rt, | 124 GrStencilAttachment* createStencilAttachmentForRenderTarget(const GrRenderTa
rget* rt, |
125 int width, | 125 int width, |
126 int height) over
ride; | 126 int height) over
ride; |
127 | 127 |
128 GrBackendObject createTestingOnlyBackendTexture(void* pixels, int w, int h, | 128 GrBackendObject createTestingOnlyBackendTexture(void* pixels, int w, int h, |
129 GrPixelConfig config) const
override; | 129 GrPixelConfig config) overri
de; |
130 bool isTestingOnlyBackendTexture(GrBackendObject) const override; | 130 bool isTestingOnlyBackendTexture(GrBackendObject) const override; |
131 void deleteTestingOnlyBackendTexture(GrBackendObject, bool abandonTexture) c
onst override; | 131 void deleteTestingOnlyBackendTexture(GrBackendObject, bool abandonTexture) o
verride; |
132 | 132 |
133 void resetShaderCacheForTesting() const override; | 133 void resetShaderCacheForTesting() const override; |
134 | 134 |
135 void drawDebugWireRect(GrRenderTarget*, const SkIRect&, GrColor) override; | 135 void drawDebugWireRect(GrRenderTarget*, const SkIRect&, GrColor) override; |
136 | 136 |
137 void performFlushWorkaround() override; | 137 void performFlushWorkaround() override; |
138 | 138 |
139 private: | 139 private: |
140 GrGLGpu(GrGLContext* ctx, GrContext* context); | 140 GrGLGpu(GrGLContext* ctx, GrContext* context); |
141 | 141 |
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
581 } fPLSSetupProgram; | 581 } fPLSSetupProgram; |
582 | 582 |
583 bool fHWPLSEnabled; | 583 bool fHWPLSEnabled; |
584 bool fPLSHasBeenUsed; | 584 bool fPLSHasBeenUsed; |
585 | 585 |
586 typedef GrGpu INHERITED; | 586 typedef GrGpu INHERITED; |
587 friend class GrGLPathRendering; // For accessing setTextureUnit. | 587 friend class GrGLPathRendering; // For accessing setTextureUnit. |
588 }; | 588 }; |
589 | 589 |
590 #endif | 590 #endif |
OLD | NEW |