| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 } | 78 } |
| 79 void notifyVertexBufferDelete(GrGLuint id) { | 79 void notifyVertexBufferDelete(GrGLuint id) { |
| 80 fHWGeometryState.notifyVertexBufferDelete(id); | 80 fHWGeometryState.notifyVertexBufferDelete(id); |
| 81 } | 81 } |
| 82 void notifyIndexBufferDelete(GrGLuint id) { | 82 void notifyIndexBufferDelete(GrGLuint id) { |
| 83 fHWGeometryState.notifyIndexBufferDelete(id); | 83 fHWGeometryState.notifyIndexBufferDelete(id); |
| 84 } | 84 } |
| 85 void notifyTextureDelete(GrGLTexture* texture); | 85 void notifyTextureDelete(GrGLTexture* texture); |
| 86 void notifyRenderTargetDelete(GrRenderTarget* renderTarget); | 86 void notifyRenderTargetDelete(GrRenderTarget* renderTarget); |
| 87 | 87 |
| 88 protected: |
| 89 virtual bool onCopySurface(GrSurface* dst, |
| 90 GrSurface* src, |
| 91 const SkIRect& srcRect, |
| 92 const SkIPoint& dstPoint) SK_OVERRIDE; |
| 93 |
| 94 virtual bool onCanCopySurface(GrSurface* dst, |
| 95 GrSurface* src, |
| 96 const SkIRect& srcRect, |
| 97 const SkIPoint& dstPoint) SK_OVERRIDE; |
| 98 |
| 99 |
| 88 private: | 100 private: |
| 89 // GrGpu overrides | 101 // GrGpu overrides |
| 90 virtual void onResetContext() SK_OVERRIDE; | 102 virtual void onResetContext() SK_OVERRIDE; |
| 91 | 103 |
| 92 virtual GrTexture* onCreateTexture(const GrTextureDesc& desc, | 104 virtual GrTexture* onCreateTexture(const GrTextureDesc& desc, |
| 93 const void* srcData, | 105 const void* srcData, |
| 94 size_t rowBytes) SK_OVERRIDE; | 106 size_t rowBytes) SK_OVERRIDE; |
| 95 virtual GrVertexBuffer* onCreateVertexBuffer(uint32_t size, | 107 virtual GrVertexBuffer* onCreateVertexBuffer(uint32_t size, |
| 96 bool dynamic) SK_OVERRIDE; | 108 bool dynamic) SK_OVERRIDE; |
| 97 virtual GrIndexBuffer* onCreateIndexBuffer(uint32_t size, | 109 virtual GrIndexBuffer* onCreateIndexBuffer(uint32_t size, |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 ///@} | 437 ///@} |
| 426 | 438 |
| 427 // we record what stencil format worked last time to hopefully exit early | 439 // we record what stencil format worked last time to hopefully exit early |
| 428 // from our loop that tries stencil formats and calls check fb status. | 440 // from our loop that tries stencil formats and calls check fb status. |
| 429 int fLastSuccessfulStencilFmtIdx; | 441 int fLastSuccessfulStencilFmtIdx; |
| 430 | 442 |
| 431 typedef GrGpu INHERITED; | 443 typedef GrGpu INHERITED; |
| 432 }; | 444 }; |
| 433 | 445 |
| 434 #endif | 446 #endif |
| OLD | NEW |