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

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

Issue 618733002: Revert of Make "priv" classes for GrTexure and GrSurface. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 2 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/GrTexturePriv.h ('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 9
10 10
11 #ifndef SkGpuDevice_DEFINED 11 #ifndef SkGpuDevice_DEFINED
12 #define SkGpuDevice_DEFINED 12 #define SkGpuDevice_DEFINED
13 13
14 #include "SkGr.h" 14 #include "SkGr.h"
15 #include "SkBitmap.h" 15 #include "SkBitmap.h"
16 #include "SkDevice.h" 16 #include "SkDevice.h"
17 #include "SkPicture.h" 17 #include "SkPicture.h"
18 #include "SkRegion.h" 18 #include "SkRegion.h"
19 #include "GrContext.h" 19 #include "GrContext.h"
20 #include "GrSurfacePriv.h"
21 20
22 struct SkDrawProcs; 21 struct SkDrawProcs;
23 struct GrSkDrawProcs; 22 struct GrSkDrawProcs;
24 23
25 class GrAccelData; 24 class GrAccelData;
26 struct GrCachedLayer; 25 struct GrCachedLayer;
27 class GrTextContext; 26 class GrTextContext;
28 27
29 /** 28 /**
30 * 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
(...skipping 24 matching lines...) Expand all
55 static SkGpuDevice* Create(GrContext*, const SkImageInfo&, const SkSurfacePr ops&, 54 static SkGpuDevice* Create(GrContext*, const SkImageInfo&, const SkSurfacePr ops&,
56 int sampleCount); 55 int sampleCount);
57 56
58 virtual ~SkGpuDevice(); 57 virtual ~SkGpuDevice();
59 58
60 GrContext* context() const { return fContext; } 59 GrContext* context() const { return fContext; }
61 60
62 virtual GrRenderTarget* accessRenderTarget() SK_OVERRIDE; 61 virtual GrRenderTarget* accessRenderTarget() SK_OVERRIDE;
63 62
64 virtual SkImageInfo imageInfo() const SK_OVERRIDE { 63 virtual SkImageInfo imageInfo() const SK_OVERRIDE {
65 return fRenderTarget ? fRenderTarget->surfacePriv().info() : SkImageInfo ::MakeUnknown(); 64 return fRenderTarget ? fRenderTarget->info() : SkImageInfo::MakeUnknown( );
66 } 65 }
67 66
68 virtual void clear(SkColor color) SK_OVERRIDE; 67 virtual void clear(SkColor color) SK_OVERRIDE;
69 virtual void drawPaint(const SkDraw&, const SkPaint& paint) SK_OVERRIDE; 68 virtual void drawPaint(const SkDraw&, const SkPaint& paint) SK_OVERRIDE;
70 virtual void drawPoints(const SkDraw&, SkCanvas::PointMode mode, size_t coun t, 69 virtual void drawPoints(const SkDraw&, SkCanvas::PointMode mode, size_t coun t,
71 const SkPoint[], const SkPaint& paint) SK_OVERRIDE; 70 const SkPoint[], const SkPaint& paint) SK_OVERRIDE;
72 virtual void drawRect(const SkDraw&, const SkRect& r, 71 virtual void drawRect(const SkDraw&, const SkRect& r,
73 const SkPaint& paint) SK_OVERRIDE; 72 const SkPaint& paint) SK_OVERRIDE;
74 virtual void drawRRect(const SkDraw&, const SkRRect& r, 73 virtual void drawRRect(const SkDraw&, const SkRRect& r,
75 const SkPaint& paint) SK_OVERRIDE; 74 const SkPaint& paint) SK_OVERRIDE;
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 bool bicubic); 200 bool bicubic);
202 201
203 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint); 202 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint);
204 203
205 static SkPicture::AccelData::Key ComputeAccelDataKey(); 204 static SkPicture::AccelData::Key ComputeAccelDataKey();
206 205
207 typedef SkBaseDevice INHERITED; 206 typedef SkBaseDevice INHERITED;
208 }; 207 };
209 208
210 #endif 209 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrTexturePriv.h ('k') | src/gpu/SkGpuDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698