| 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 inline GrSurfacePriv surfacePriv(); | 127 inline GrSurfacePriv surfacePriv(); |
| 128 inline const GrSurfacePriv surfacePriv() const; | 128 inline const GrSurfacePriv surfacePriv() const; |
| 129 | 129 |
| 130 protected: | 130 protected: |
| 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 bool isSameAs(const GrSurface* other) const; | |
| 138 | 137 |
| 139 // Provides access to methods that should be public within Skia code. | 138 // Provides access to methods that should be public within Skia code. |
| 140 friend class GrSurfacePriv; | 139 friend class GrSurfacePriv; |
| 141 | 140 |
| 142 GrSurface(GrGpu* gpu, bool isWrapped, const GrSurfaceDesc& desc) | 141 GrSurface(GrGpu* gpu, bool isWrapped, const GrSurfaceDesc& desc) |
| 143 : INHERITED(gpu, isWrapped) | 142 : INHERITED(gpu, isWrapped) |
| 144 , fDesc(desc) { | 143 , fDesc(desc) { |
| 145 } | 144 } |
| 146 | 145 |
| 147 GrSurfaceDesc fDesc; | 146 GrSurfaceDesc fDesc; |
| 148 | 147 |
| 149 private: | 148 private: |
| 150 typedef GrGpuResource INHERITED; | 149 typedef GrGpuResource INHERITED; |
| 151 }; | 150 }; |
| 152 | 151 |
| 153 #endif | 152 #endif |
| OLD | NEW |