Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(844)

Side by Side Diff: include/gpu/SkGpuDevice.h

Issue 51033004: add SK_ATTR_DEPRECATED -- will need to disable for chrome, since it triggers a warning (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « include/effects/SkRectShaderImageFilter.h ('k') | include/utils/SkMatrix44.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « include/effects/SkRectShaderImageFilter.h ('k') | include/utils/SkMatrix44.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698