| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2010 Google Inc. | 3 * Copyright 2010 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 | 9 |
| 10 | 10 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 static SkGpuDevice* Create(GrSurface* surface, unsigned flags = 0); | 43 static SkGpuDevice* Create(GrSurface* surface, unsigned flags = 0); |
| 44 | 44 |
| 45 /** | 45 /** |
| 46 * New device that will create an offscreen renderTarget based on the | 46 * New device that will create an offscreen renderTarget based on the |
| 47 * ImageInfo and sampleCount. The device's storage will not | 47 * ImageInfo and sampleCount. The device's storage will not |
| 48 * count against the GrContext's texture cache budget. The device's pixels | 48 * count against the GrContext's texture cache budget. The device's pixels |
| 49 * will be uninitialized. On failure, returns NULL. | 49 * will be uninitialized. On failure, returns NULL. |
| 50 */ | 50 */ |
| 51 static SkGpuDevice* Create(GrContext*, const SkImageInfo&, int sampleCount); | 51 static SkGpuDevice* Create(GrContext*, const SkImageInfo&, int sampleCount); |
| 52 | 52 |
| 53 #ifdef SK_SUPPORT_LEGACY_COMPATIBLEDEVICE_CONFIG | |
| 54 /** | |
| 55 * New device that will create an offscreen renderTarget based on the | |
| 56 * config, width, height, and sampleCount. The device's storage will not | |
| 57 * count against the GrContext's texture cache budget. The device's pixels | |
| 58 * will be uninitialized. TODO: This can fail, replace with a factory funct
ion. | |
| 59 */ | |
| 60 SkGpuDevice(GrContext*, SkBitmap::Config, int width, int height, int sampleC
ount = 0); | |
| 61 #endif | |
| 62 | |
| 63 /** | 53 /** |
| 64 * DEPRECATED -- need to make this private, call Create(surface) | 54 * DEPRECATED -- need to make this private, call Create(surface) |
| 65 * New device that will render to the specified renderTarget. | 55 * New device that will render to the specified renderTarget. |
| 66 */ | 56 */ |
| 67 SkGpuDevice(GrContext*, GrRenderTarget*, unsigned flags = 0); | 57 SkGpuDevice(GrContext*, GrRenderTarget*, unsigned flags = 0); |
| 68 | 58 |
| 69 /** | 59 /** |
| 70 * DEPRECATED -- need to make this private, call Create(surface) | 60 * DEPRECATED -- need to make this private, call Create(surface) |
| 71 * New device that will render to the texture (as a rendertarget). | 61 * New device that will render to the texture (as a rendertarget). |
| 72 * The GrTexture's asRenderTarget() must be non-NULL or device will not | 62 * The GrTexture's asRenderTarget() must be non-NULL or device will not |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 SkCanvas::DrawBitmapRectFlags flags, | 212 SkCanvas::DrawBitmapRectFlags flags, |
| 223 int tileSize, | 213 int tileSize, |
| 224 bool bicubic); | 214 bool bicubic); |
| 225 | 215 |
| 226 static SkPicture::AccelData::Key ComputeAccelDataKey(); | 216 static SkPicture::AccelData::Key ComputeAccelDataKey(); |
| 227 | 217 |
| 228 typedef SkBitmapDevice INHERITED; | 218 typedef SkBitmapDevice INHERITED; |
| 229 }; | 219 }; |
| 230 | 220 |
| 231 #endif | 221 #endif |
| OLD | NEW |