| 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 * Implements GrTextureProvider::wrapBackendRenderTarget | 130 * Implements GrTextureProvider::wrapBackendRenderTarget |
| 131 */ | 131 */ |
| 132 GrRenderTarget* wrapBackendRenderTarget(const GrBackendRenderTargetDesc&, Gr
WrapOwnership); | 132 GrRenderTarget* wrapBackendRenderTarget(const GrBackendRenderTargetDesc&, Gr
WrapOwnership); |
| 133 | 133 |
| 134 /** | 134 /** |
| 135 * Implements GrTextureProvider::wrapBackendTextureAsRenderTarget | 135 * Implements GrTextureProvider::wrapBackendTextureAsRenderTarget |
| 136 */ | 136 */ |
| 137 GrRenderTarget* wrapBackendTextureAsRenderTarget(const GrBackendTextureDesc&
); | 137 GrRenderTarget* wrapBackendTextureAsRenderTarget(const GrBackendTextureDesc&
); |
| 138 | 138 |
| 139 /** | 139 /** |
| 140 * Creates a buffer. | 140 * Creates a buffer in GPU memory. For a client-side buffer use GrBuffer::Cr
eateCPUBacked. |
| 141 * | 141 * |
| 142 * @param size size of buffer to create. | 142 * @param size size of buffer to create. |
| 143 * @param intendedType hint to the graphics subsystem about what the buff
er will be used for. | 143 * @param intendedType hint to the graphics subsystem about what the buff
er will be used for. |
| 144 * @param accessPattern hint to the graphics subsystem about how the data
will be accessed. | 144 * @param accessPattern hint to the graphics subsystem about how the data
will be accessed. |
| 145 * @param data optional data with which to initialize the buffer. | 145 * @param data optional data with which to initialize the buffer. |
| 146 * | 146 * |
| 147 * @return the buffer if successful, otherwise nullptr. | 147 * @return the buffer if successful, otherwise nullptr. |
| 148 */ | 148 */ |
| 149 GrBuffer* createBuffer(size_t size, GrBufferType intendedType, GrAccessPatte
rn accessPattern, | 149 GrBuffer* createBuffer(size_t size, GrBufferType intendedType, GrAccessPatte
rn accessPattern, |
| 150 const void* data = nullptr); | 150 const void* data = nullptr); |
| (...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 598 SkSTArray<1, MultisampleSpecs, true> fMultisampleSpecs; | 598 SkSTArray<1, MultisampleSpecs, true> fMultisampleSpecs; |
| 599 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu. | 599 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu. |
| 600 GrContext* fContext; | 600 GrContext* fContext; |
| 601 | 601 |
| 602 friend class GrPathRendering; | 602 friend class GrPathRendering; |
| 603 friend class gr_instanced::InstancedRendering; | 603 friend class gr_instanced::InstancedRendering; |
| 604 typedef SkRefCnt INHERITED; | 604 typedef SkRefCnt INHERITED; |
| 605 }; | 605 }; |
| 606 | 606 |
| 607 #endif | 607 #endif |
| OLD | NEW |