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

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

Issue 1209043012: Add SK_API to GrSurface (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 5 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 | « no previous file | no next file » | 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 * Copyright 2012 Google Inc. 2 * Copyright 2012 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 8
9 #ifndef GrSurface_DEFINED 9 #ifndef GrSurface_DEFINED
10 #define GrSurface_DEFINED 10 #define GrSurface_DEFINED
11 11
12 #include "GrTypes.h" 12 #include "GrTypes.h"
13 #include "GrGpuResource.h" 13 #include "GrGpuResource.h"
14 #include "SkImageInfo.h" 14 #include "SkImageInfo.h"
15 #include "SkRect.h" 15 #include "SkRect.h"
16 16
17 class GrRenderTarget; 17 class GrRenderTarget;
18 class GrSurfacePriv; 18 class GrSurfacePriv;
19 class GrTexture; 19 class GrTexture;
20 20
21 class GrSurface : public GrGpuResource { 21 class SK_API GrSurface : public GrGpuResource {
22 public: 22 public:
23 /** 23 /**
24 * Retrieves the width of the surface. 24 * Retrieves the width of the surface.
25 */ 25 */
26 int width() const { return fDesc.fWidth; } 26 int width() const { return fDesc.fWidth; }
27 27
28 /** 28 /**
29 * Retrieves the height of the surface. 29 * Retrieves the height of the surface.
30 */ 30 */
31 int height() const { return fDesc.fHeight; } 31 int height() const { return fDesc.fHeight; }
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 } 169 }
170 } 170 }
171 171
172 ReleaseProc fReleaseProc; 172 ReleaseProc fReleaseProc;
173 ReleaseCtx fReleaseCtx; 173 ReleaseCtx fReleaseCtx;
174 174
175 typedef GrGpuResource INHERITED; 175 typedef GrGpuResource INHERITED;
176 }; 176 };
177 177
178 #endif 178 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698