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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 | 126 |
127 void invalidateBoundRenderTarget() { | 127 void invalidateBoundRenderTarget() { |
128 fHWBoundRenderTargetUniqueID = SK_InvalidUniqueID; | 128 fHWBoundRenderTargetUniqueID = SK_InvalidUniqueID; |
129 } | 129 } |
130 | 130 |
131 GrStencilAttachment* createStencilAttachmentForRenderTarget(const GrRenderTa
rget* rt, | 131 GrStencilAttachment* createStencilAttachmentForRenderTarget(const GrRenderTa
rget* rt, |
132 int width, | 132 int width, |
133 int height) over
ride; | 133 int height) over
ride; |
134 | 134 |
135 GrBackendObject createTestingOnlyBackendTexture(void* pixels, int w, int h, | 135 GrBackendObject createTestingOnlyBackendTexture(void* pixels, int w, int h, |
136 GrPixelConfig config) overri
de; | 136 GrPixelConfig config, |
| 137 bool isRenderTarget = false)
override; |
137 bool isTestingOnlyBackendTexture(GrBackendObject) const override; | 138 bool isTestingOnlyBackendTexture(GrBackendObject) const override; |
138 void deleteTestingOnlyBackendTexture(GrBackendObject, bool abandonTexture) o
verride; | 139 void deleteTestingOnlyBackendTexture(GrBackendObject, bool abandonTexture) o
verride; |
139 | 140 |
140 void resetShaderCacheForTesting() const override; | 141 void resetShaderCacheForTesting() const override; |
141 | 142 |
142 void drawDebugWireRect(GrRenderTarget*, const SkIRect&, GrColor) override; | 143 void drawDebugWireRect(GrRenderTarget*, const SkIRect&, GrColor) override; |
143 | 144 |
144 void finishDrawTarget() override; | 145 void finishDrawTarget() override; |
145 | 146 |
146 private: | 147 private: |
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
594 bool fHWPLSEnabled; | 595 bool fHWPLSEnabled; |
595 bool fPLSHasBeenUsed; | 596 bool fPLSHasBeenUsed; |
596 | 597 |
597 float fHWMinSampleShading; | 598 float fHWMinSampleShading; |
598 | 599 |
599 typedef GrGpu INHERITED; | 600 typedef GrGpu INHERITED; |
600 friend class GrGLPathRendering; // For accessing setTextureUnit. | 601 friend class GrGLPathRendering; // For accessing setTextureUnit. |
601 }; | 602 }; |
602 | 603 |
603 #endif | 604 #endif |
OLD | NEW |