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 GrGpu_DEFINED | 8 #ifndef GrGpu_DEFINED |
9 #define GrGpu_DEFINED | 9 #define GrGpu_DEFINED |
10 | 10 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 * palette data for paletted textures. For compressed | 86 * palette data for paletted textures. For compressed |
87 * formats it contains the compressed pixel data. Otherwi
se, | 87 * formats it contains the compressed pixel data. Otherwi
se, |
88 * it contains width*height texels. If nullptr texture da
ta | 88 * it contains width*height texels. If nullptr texture da
ta |
89 * is uninitialized. | 89 * is uninitialized. |
90 * @param rowBytes the number of bytes between consecutive rows. Zero | 90 * @param rowBytes the number of bytes between consecutive rows. Zero |
91 * means rows are tightly packed. This field is ignored | 91 * means rows are tightly packed. This field is ignored |
92 * for compressed formats. | 92 * for compressed formats. |
93 * | 93 * |
94 * @return The texture object if successful, otherwise nullptr. | 94 * @return The texture object if successful, otherwise nullptr. |
95 */ | 95 */ |
96 GrTexture* createTexture(const GrSurfaceDesc& desc, SkBudgeted budgeted, | 96 GrTexture* createTexture(const GrSurfaceDesc& desc, bool budgeted, |
97 const void* srcData, size_t rowBytes); | 97 const void* srcData, size_t rowBytes); |
98 | 98 |
99 /** | 99 /** |
100 * Implements GrTextureProvider::wrapBackendTexture | 100 * Implements GrTextureProvider::wrapBackendTexture |
101 */ | 101 */ |
102 GrTexture* wrapBackendTexture(const GrBackendTextureDesc&, GrWrapOwnership); | 102 GrTexture* wrapBackendTexture(const GrBackendTextureDesc&, GrWrapOwnership); |
103 | 103 |
104 /** | 104 /** |
105 * Implements GrTextureProvider::wrapBackendTexture | 105 * Implements GrTextureProvider::wrapBackendTexture |
106 */ | 106 */ |
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
582 ResetTimestamp fResetTi
mestamp; | 582 ResetTimestamp fResetTi
mestamp; |
583 uint32_t fResetBi
ts; | 583 uint32_t fResetBi
ts; |
584 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu. | 584 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu. |
585 GrContext* fContext
; | 585 GrContext* fContext
; |
586 | 586 |
587 friend class GrPathRendering; | 587 friend class GrPathRendering; |
588 typedef SkRefCnt INHERITED; | 588 typedef SkRefCnt INHERITED; |
589 }; | 589 }; |
590 | 590 |
591 #endif | 591 #endif |
OLD | NEW |