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 25 matching lines...) Expand all Loading... |
36 | 36 |
37 /** | 37 /** |
38 * New device that will create an offscreen renderTarget based on the | 38 * New device that will create an offscreen renderTarget based on the |
39 * config, width, height, and sampleCount. The device's storage will not | 39 * config, width, height, and sampleCount. The device's storage will not |
40 * count against the GrContext's texture cache budget. The device's pixels | 40 * count against the GrContext's texture cache budget. The device's pixels |
41 * will be uninitialized. TODO: This can fail, replace with a factory funct
ion. | 41 * will be uninitialized. TODO: This can fail, replace with a factory funct
ion. |
42 */ | 42 */ |
43 SkGpuDevice(GrContext*, SkBitmap::Config, int width, int height, int sampleC
ount = 0); | 43 SkGpuDevice(GrContext*, SkBitmap::Config, int width, int height, int sampleC
ount = 0); |
44 | 44 |
45 /** | 45 /** |
| 46 * DEPRECATED -- need to make this private, call Create(surface) |
46 * New device that will render to the specified renderTarget. | 47 * New device that will render to the specified renderTarget. |
47 * DEPRECATED: Use Create(surface) | |
48 */ | 48 */ |
49 SkGpuDevice(GrContext*, GrRenderTarget*); | 49 SkGpuDevice(GrContext*, GrRenderTarget*); |
50 | 50 |
51 /** | 51 /** |
| 52 * DEPRECATED -- need to make this private, call Create(surface) |
52 * New device that will render to the texture (as a rendertarget). | 53 * New device that will render to the texture (as a rendertarget). |
53 * The GrTexture's asRenderTarget() must be non-NULL or device will not | 54 * The GrTexture's asRenderTarget() must be non-NULL or device will not |
54 * function. | 55 * function. |
55 * DEPRECATED: Use Create(surface) | |
56 */ | 56 */ |
57 SkGpuDevice(GrContext*, GrTexture*); | 57 SkGpuDevice(GrContext*, GrTexture*); |
58 | 58 |
59 virtual ~SkGpuDevice(); | 59 virtual ~SkGpuDevice(); |
60 | 60 |
61 GrContext* context() const { return fContext; } | 61 GrContext* context() const { return fContext; } |
62 | 62 |
63 virtual GrRenderTarget* accessRenderTarget() SK_OVERRIDE; | 63 virtual GrRenderTarget* accessRenderTarget() SK_OVERRIDE; |
64 | 64 |
65 // overrides from SkBaseDevice | 65 // overrides from SkBaseDevice |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 | 209 |
210 /** | 210 /** |
211 * Returns non-initialized instance. | 211 * Returns non-initialized instance. |
212 */ | 212 */ |
213 GrTextContext* getTextContext(); | 213 GrTextContext* getTextContext(); |
214 | 214 |
215 typedef SkBitmapDevice INHERITED; | 215 typedef SkBitmapDevice INHERITED; |
216 }; | 216 }; |
217 | 217 |
218 #endif | 218 #endif |
OLD | NEW |