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

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

Issue 1225923010: Refugee from Dead Machine 4: MDB Monster Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Last update from dead machine Created 4 years, 7 months 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
« no previous file with comments | « src/gpu/GrYUVProvider.cpp ('k') | src/gpu/SkGpuDevice.cpp » ('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 #ifndef SkGpuDevice_DEFINED 9 #ifndef SkGpuDevice_DEFINED
10 #define SkGpuDevice_DEFINED 10 #define SkGpuDevice_DEFINED
(...skipping 18 matching lines...) Expand all
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
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
OLDNEW
« no previous file with comments | « src/gpu/GrYUVProvider.cpp ('k') | src/gpu/SkGpuDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698