OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 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 SkImage_DEFINED | 8 #ifndef SkImage_DEFINED |
9 #define SkImage_DEFINED | 9 #define SkImage_DEFINED |
10 | 10 |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 | 164 |
165 // DEPRECATED | 165 // DEPRECATED |
166 GrTexture* getTexture() const; | 166 GrTexture* getTexture() const; |
167 | 167 |
168 /** | 168 /** |
169 * Returns true if the image is texture backed. | 169 * Returns true if the image is texture backed. |
170 */ | 170 */ |
171 bool isTextureBacked() const; | 171 bool isTextureBacked() const; |
172 | 172 |
173 /** | 173 /** |
174 * Retrieves the backend API handle of the texture. If flushPendingGrContex
tReads then the | 174 * Retrieves the backend API handle of the texture. If flushPendingGrContex
tIO then the |
175 * GrContext will issue to the backend API any deferred read operations on
the texture before | 175 * GrContext will issue to the backend API any deferred IO operations on th
e texture before |
176 * returning. | 176 * returning. |
177 */ | 177 */ |
178 GrBackendObject getTextureHandle(bool flushPendingGrContextReads) const; | 178 GrBackendObject getTextureHandle(bool flushPendingGrContextIO) const; |
179 | 179 |
180 /** | 180 /** |
181 * Copy the pixels from the image into the specified buffer (pixels + rowBy
tes), | 181 * Copy the pixels from the image into the specified buffer (pixels + rowBy
tes), |
182 * converting them into the requested format (dstInfo). The image pixels ar
e read | 182 * converting them into the requested format (dstInfo). The image pixels ar
e read |
183 * starting at the specified (srcX,srcY) location. | 183 * starting at the specified (srcX,srcY) location. |
184 * | 184 * |
185 * The specified ImageInfo and (srcX,srcY) offset specifies a source rectan
gle | 185 * The specified ImageInfo and (srcX,srcY) offset specifies a source rectan
gle |
186 * | 186 * |
187 * srcR.setXYWH(srcX, srcY, dstInfo.width(), dstInfo.height()); | 187 * srcR.setXYWH(srcX, srcY, dstInfo.width(), dstInfo.height()); |
188 * | 188 * |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 const int fWidth; | 270 const int fWidth; |
271 const int fHeight; | 271 const int fHeight; |
272 const uint32_t fUniqueID; | 272 const uint32_t fUniqueID; |
273 | 273 |
274 static uint32_t NextUniqueID(); | 274 static uint32_t NextUniqueID(); |
275 | 275 |
276 typedef SkRefCnt INHERITED; | 276 typedef SkRefCnt INHERITED; |
277 }; | 277 }; |
278 | 278 |
279 #endif | 279 #endif |
OLD | NEW |