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 | 8 |
9 | 9 |
10 #ifndef GrGpuGL_DEFINED | 10 #ifndef GrGpuGL_DEFINED |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 } | 82 } |
83 void notifyVertexBufferDelete(GrGLuint id) { | 83 void notifyVertexBufferDelete(GrGLuint id) { |
84 fHWGeometryState.notifyVertexBufferDelete(id); | 84 fHWGeometryState.notifyVertexBufferDelete(id); |
85 } | 85 } |
86 void notifyIndexBufferDelete(GrGLuint id) { | 86 void notifyIndexBufferDelete(GrGLuint id) { |
87 fHWGeometryState.notifyIndexBufferDelete(id); | 87 fHWGeometryState.notifyIndexBufferDelete(id); |
88 } | 88 } |
89 void notifyTextureDelete(GrGLTexture* texture); | 89 void notifyTextureDelete(GrGLTexture* texture); |
90 void notifyRenderTargetDelete(GrRenderTarget* renderTarget); | 90 void notifyRenderTargetDelete(GrRenderTarget* renderTarget); |
91 | 91 |
| 92 virtual void resetTextureBinding() SK_OVERRIDE; |
| 93 |
92 protected: | 94 protected: |
93 virtual bool onCopySurface(GrSurface* dst, | 95 virtual bool onCopySurface(GrSurface* dst, |
94 GrSurface* src, | 96 GrSurface* src, |
95 const SkIRect& srcRect, | 97 const SkIRect& srcRect, |
96 const SkIPoint& dstPoint) SK_OVERRIDE; | 98 const SkIPoint& dstPoint) SK_OVERRIDE; |
97 | 99 |
98 virtual bool onCanCopySurface(GrSurface* dst, | 100 virtual bool onCanCopySurface(GrSurface* dst, |
99 GrSurface* src, | 101 GrSurface* src, |
100 const SkIRect& srcRect, | 102 const SkIRect& srcRect, |
101 const SkIPoint& dstPoint) SK_OVERRIDE; | 103 const SkIPoint& dstPoint) SK_OVERRIDE; |
102 | 104 |
103 private: | 105 private: |
104 // GrGpu overrides | 106 // GrGpu overrides |
105 virtual void onResetContext() SK_OVERRIDE; | 107 virtual void onResetContext(int resetBits) SK_OVERRIDE; |
106 | 108 |
107 virtual GrTexture* onCreateTexture(const GrTextureDesc& desc, | 109 virtual GrTexture* onCreateTexture(const GrTextureDesc& desc, |
108 const void* srcData, | 110 const void* srcData, |
109 size_t rowBytes) SK_OVERRIDE; | 111 size_t rowBytes) SK_OVERRIDE; |
110 virtual GrVertexBuffer* onCreateVertexBuffer(uint32_t size, | 112 virtual GrVertexBuffer* onCreateVertexBuffer(uint32_t size, |
111 bool dynamic) SK_OVERRIDE; | 113 bool dynamic) SK_OVERRIDE; |
112 virtual GrIndexBuffer* onCreateIndexBuffer(uint32_t size, | 114 virtual GrIndexBuffer* onCreateIndexBuffer(uint32_t size, |
113 bool dynamic) SK_OVERRIDE; | 115 bool dynamic) SK_OVERRIDE; |
114 virtual GrPath* onCreatePath(const SkPath&) SK_OVERRIDE; | 116 virtual GrPath* onCreatePath(const SkPath&) SK_OVERRIDE; |
115 virtual GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&) SK_OVER
RIDE; | 117 virtual GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&) SK_OVER
RIDE; |
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 ///@} | 435 ///@} |
434 | 436 |
435 // we record what stencil format worked last time to hopefully exit early | 437 // we record what stencil format worked last time to hopefully exit early |
436 // from our loop that tries stencil formats and calls check fb status. | 438 // from our loop that tries stencil formats and calls check fb status. |
437 int fLastSuccessfulStencilFmtIdx; | 439 int fLastSuccessfulStencilFmtIdx; |
438 | 440 |
439 typedef GrGpu INHERITED; | 441 typedef GrGpu INHERITED; |
440 }; | 442 }; |
441 | 443 |
442 #endif | 444 #endif |
OLD | NEW |