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 |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 // Methods made available via GrSurfacePriv | 131 // Methods made available via GrSurfacePriv |
132 SkImageInfo info() const; | 132 SkImageInfo info() const; |
133 bool savePixels(const char* filename); | 133 bool savePixels(const char* filename); |
134 bool hasPendingRead() const; | 134 bool hasPendingRead() const; |
135 bool hasPendingWrite() const; | 135 bool hasPendingWrite() const; |
136 bool hasPendingIO() const; | 136 bool hasPendingIO() const; |
137 | 137 |
138 // Provides access to methods that should be public within Skia code. | 138 // Provides access to methods that should be public within Skia code. |
139 friend class GrSurfacePriv; | 139 friend class GrSurfacePriv; |
140 | 140 |
141 GrSurface(GrGpu* gpu, bool isWrapped, const GrSurfaceDesc& desc) | 141 GrSurface(GrGpu* gpu, LifeCycle lifeCycle, const GrSurfaceDesc& desc) |
142 : INHERITED(gpu, isWrapped) | 142 : INHERITED(gpu, lifeCycle) |
143 , fDesc(desc) { | 143 , fDesc(desc) { |
144 } | 144 } |
145 | 145 |
146 GrSurfaceDesc fDesc; | 146 GrSurfaceDesc fDesc; |
147 | 147 |
148 private: | 148 private: |
149 typedef GrGpuResource INHERITED; | 149 typedef GrGpuResource INHERITED; |
150 }; | 150 }; |
151 | 151 |
152 #endif | 152 #endif |
OLD | NEW |