OLD | NEW |
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 Loading... |
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 |
OLD | NEW |