| 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 #ifndef SkGpuDevice_DEFINED | 9 #ifndef SkGpuDevice_DEFINED |
| 10 #define SkGpuDevice_DEFINED | 10 #define SkGpuDevice_DEFINED |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 * Subclass of SkBaseDevice, which directs all drawing to the GrGpu owned by th
e | 29 * Subclass of SkBaseDevice, which directs all drawing to the GrGpu owned by th
e |
| 30 * canvas. | 30 * canvas. |
| 31 */ | 31 */ |
| 32 class SK_API SkGpuDevice : public SkBaseDevice { | 32 class SK_API SkGpuDevice : public SkBaseDevice { |
| 33 public: | 33 public: |
| 34 enum InitContents { | 34 enum InitContents { |
| 35 kClear_InitContents, | 35 kClear_InitContents, |
| 36 kUninit_InitContents | 36 kUninit_InitContents |
| 37 }; | 37 }; |
| 38 | 38 |
| 39 void discard37(); |
| 40 |
| 39 /** | 41 /** |
| 40 * Creates an SkGpuDevice from a GrRenderTarget. | 42 * Creates an SkGpuDevice from a GrRenderTarget. |
| 41 */ | 43 */ |
| 42 static SkGpuDevice* Create(GrRenderTarget* target, const SkSurfaceProps*, In
itContents); | 44 static SkGpuDevice* Create(GrRenderTarget* target, const SkSurfaceProps*, In
itContents); |
| 43 | 45 |
| 44 /** | 46 /** |
| 45 * Creates an SkGpuDevice from a GrRenderTarget whose texture width/height i
s | 47 * Creates an SkGpuDevice from a GrRenderTarget whose texture width/height i
s |
| 46 * different than its actual width/height (e.g., approx-match scratch textur
e). | 48 * different than its actual width/height (e.g., approx-match scratch textur
e). |
| 47 */ | 49 */ |
| 48 static SkGpuDevice* Create(GrRenderTarget* target, int width, int height, | 50 static SkGpuDevice* Create(GrRenderTarget* target, int width, int height, |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 | 261 |
| 260 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c
onst SkImageInfo&, | 262 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c
onst SkImageInfo&, |
| 261 int sampleCount); | 263 int sampleCount); |
| 262 | 264 |
| 263 friend class GrAtlasTextContext; | 265 friend class GrAtlasTextContext; |
| 264 friend class SkSurface_Gpu; // for access to surfaceProps | 266 friend class SkSurface_Gpu; // for access to surfaceProps |
| 265 typedef SkBaseDevice INHERITED; | 267 typedef SkBaseDevice INHERITED; |
| 266 }; | 268 }; |
| 267 | 269 |
| 268 #endif | 270 #endif |
| OLD | NEW |