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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 const SkIPoint& dstPoint) SK_OVERRIDE; | 101 const SkIPoint& dstPoint) SK_OVERRIDE; |
102 | 102 |
103 bool canCopySurface(const GrSurface* dst, | 103 bool canCopySurface(const GrSurface* dst, |
104 const GrSurface* src, | 104 const GrSurface* src, |
105 const SkIRect& srcRect, | 105 const SkIRect& srcRect, |
106 const SkIPoint& dstPoint) SK_OVERRIDE; | 106 const SkIPoint& dstPoint) SK_OVERRIDE; |
107 | 107 |
108 void buildProgramDesc(GrProgramDesc*, | 108 void buildProgramDesc(GrProgramDesc*, |
109 const GrPrimitiveProcessor&, | 109 const GrPrimitiveProcessor&, |
110 const GrPipeline&, | 110 const GrPipeline&, |
111 const GrProgramDesc::DescInfo&, | |
112 const GrBatchTracker&) const SK_OVERRIDE; | 111 const GrBatchTracker&) const SK_OVERRIDE; |
113 | 112 |
114 private: | 113 private: |
115 // GrGpu overrides | 114 // GrGpu overrides |
116 void onResetContext(uint32_t resetBits) SK_OVERRIDE; | 115 void onResetContext(uint32_t resetBits) SK_OVERRIDE; |
117 | 116 |
118 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, bool budgeted, const v
oid* srcData, | 117 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, bool budgeted, const v
oid* srcData, |
119 size_t rowBytes) SK_OVERRIDE; | 118 size_t rowBytes) SK_OVERRIDE; |
120 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, bool budgete
d, | 119 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, bool budgete
d, |
121 const void* srcData) SK_OVERRIDE; | 120 const void* srcData) SK_OVERRIDE; |
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
465 | 464 |
466 // we record what stencil format worked last time to hopefully exit early | 465 // we record what stencil format worked last time to hopefully exit early |
467 // from our loop that tries stencil formats and calls check fb status. | 466 // from our loop that tries stencil formats and calls check fb status. |
468 int fLastSuccessfulStencilFmtIdx; | 467 int fLastSuccessfulStencilFmtIdx; |
469 | 468 |
470 typedef GrGpu INHERITED; | 469 typedef GrGpu INHERITED; |
471 friend class GrGLPathRendering; // For accessing setTextureUnit. | 470 friend class GrGLPathRendering; // For accessing setTextureUnit. |
472 }; | 471 }; |
473 | 472 |
474 #endif | 473 #endif |
OLD | NEW |