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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 | 127 |
128 GrBackendObject createTestingOnlyBackendTexture(void* pixels, int w, int h, | 128 GrBackendObject createTestingOnlyBackendTexture(void* pixels, int w, int h, |
129 GrPixelConfig config) overri
de; | 129 GrPixelConfig config) overri
de; |
130 bool isTestingOnlyBackendTexture(GrBackendObject) const override; | 130 bool isTestingOnlyBackendTexture(GrBackendObject) const override; |
131 void deleteTestingOnlyBackendTexture(GrBackendObject, bool abandonTexture) o
verride; | 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 finishDrawTarget() override; |
138 | 138 |
139 private: | 139 private: |
140 GrGLGpu(GrGLContext* ctx, GrContext* context); | 140 GrGLGpu(GrGLContext* ctx, GrContext* context); |
141 | 141 |
142 // GrGpu overrides | 142 // GrGpu overrides |
143 void onResetContext(uint32_t resetBits) override; | 143 void onResetContext(uint32_t resetBits) override; |
144 | 144 |
145 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override; | 145 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override; |
146 | 146 |
147 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, GrGpuResource::LifeCyc
le lifeCycle, | 147 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, GrGpuResource::LifeCyc
le lifeCycle, |
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
597 } fPLSSetupProgram; | 597 } fPLSSetupProgram; |
598 | 598 |
599 bool fHWPLSEnabled; | 599 bool fHWPLSEnabled; |
600 bool fPLSHasBeenUsed; | 600 bool fPLSHasBeenUsed; |
601 | 601 |
602 typedef GrGpu INHERITED; | 602 typedef GrGpu INHERITED; |
603 friend class GrGLPathRendering; // For accessing setTextureUnit. | 603 friend class GrGLPathRendering; // For accessing setTextureUnit. |
604 }; | 604 }; |
605 | 605 |
606 #endif | 606 #endif |
OLD | NEW |