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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 | 105 |
106 void buildProgramDesc(GrProgramDesc*, | 106 void buildProgramDesc(GrProgramDesc*, |
107 const GrPrimitiveProcessor&, | 107 const GrPrimitiveProcessor&, |
108 const GrPipeline&, | 108 const GrPipeline&, |
109 const GrBatchTracker&) const override; | 109 const GrBatchTracker&) const override; |
110 | 110 |
111 const GrGLContext* glContextForTesting() const override { | 111 const GrGLContext* glContextForTesting() const override { |
112 return &this->glContext(); | 112 return &this->glContext(); |
113 } | 113 } |
114 | 114 |
115 GrBackendObject createBackendTexture(void* pixels, int w, int h, | 115 GrBackendObject createTestingOnlyBackendTexture(void* pixels, int w, int h, |
116 GrPixelConfig config) const override; | 116 GrPixelConfig config) const
override; |
117 bool isBackendTexture(GrBackendObject id) const override; | 117 bool isTestingOnlyBackendTexture(GrBackendObject id) const override; |
118 void deleteBackendTexture(GrBackendObject id) const override; | 118 void deleteTestingOnlyBackendTexture(GrBackendObject id) const override; |
119 | 119 |
120 private: | 120 private: |
121 GrGLGpu(GrGLContext* ctx, GrContext* context); | 121 GrGLGpu(GrGLContext* ctx, GrContext* context); |
122 | 122 |
123 // GrGpu overrides | 123 // GrGpu overrides |
124 void onResetContext(uint32_t resetBits) override; | 124 void onResetContext(uint32_t resetBits) override; |
125 | 125 |
126 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, GrGpuResource::LifeCyc
le lifeCycle, | 126 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, GrGpuResource::LifeCyc
le lifeCycle, |
127 const void* srcData, size_t rowBytes) override; | 127 const void* srcData, size_t rowBytes) override; |
128 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, | 128 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, |
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
500 | 500 |
501 // we record what stencil format worked last time to hopefully exit early | 501 // we record what stencil format worked last time to hopefully exit early |
502 // from our loop that tries stencil formats and calls check fb status. | 502 // from our loop that tries stencil formats and calls check fb status. |
503 int fLastSuccessfulStencilFmtIdx; | 503 int fLastSuccessfulStencilFmtIdx; |
504 | 504 |
505 typedef GrGpu INHERITED; | 505 typedef GrGpu INHERITED; |
506 friend class GrGLPathRendering; // For accessing setTextureUnit. | 506 friend class GrGLPathRendering; // For accessing setTextureUnit. |
507 }; | 507 }; |
508 | 508 |
509 #endif | 509 #endif |
OLD | NEW |