| 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 GrPixelConfig config, | 107 GrPixelConfig config, |
| 108 const void* buffer, | 108 const void* buffer, |
| 109 size_t rowBytes = 0, | 109 size_t rowBytes = 0, |
| 110 uint32_t pixelOpsFlags = 0); | 110 uint32_t pixelOpsFlags = 0); |
| 111 | 111 |
| 112 /** | 112 /** |
| 113 * After this returns any pending writes to the surface will be issued to th
e backend 3D API. | 113 * After this returns any pending writes to the surface will be issued to th
e backend 3D API. |
| 114 */ | 114 */ |
| 115 void flushWrites(); | 115 void flushWrites(); |
| 116 | 116 |
| 117 | |
| 118 /** | |
| 119 * After this returns any pending surface IO will be issued to the backend 3
D API and | |
| 120 * if the surface has MSAA it will be resolved. | |
| 121 */ | |
| 122 void prepareForExternalIO(); | |
| 123 | |
| 124 /** Access methods that are only to be used within Skia code. */ | 117 /** Access methods that are only to be used within Skia code. */ |
| 125 inline GrSurfacePriv surfacePriv(); | 118 inline GrSurfacePriv surfacePriv(); |
| 126 inline const GrSurfacePriv surfacePriv() const; | 119 inline const GrSurfacePriv surfacePriv() const; |
| 127 | 120 |
| 128 typedef void* ReleaseCtx; | 121 typedef void* ReleaseCtx; |
| 129 typedef void (*ReleaseProc)(ReleaseCtx); | 122 typedef void (*ReleaseProc)(ReleaseCtx); |
| 130 | 123 |
| 131 void setRelease(ReleaseProc proc, ReleaseCtx ctx) { | 124 void setRelease(ReleaseProc proc, ReleaseCtx ctx) { |
| 132 fReleaseProc = proc; | 125 fReleaseProc = proc; |
| 133 fReleaseCtx = ctx; | 126 fReleaseCtx = ctx; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 } | 163 } |
| 171 } | 164 } |
| 172 | 165 |
| 173 ReleaseProc fReleaseProc; | 166 ReleaseProc fReleaseProc; |
| 174 ReleaseCtx fReleaseCtx; | 167 ReleaseCtx fReleaseCtx; |
| 175 | 168 |
| 176 typedef GrGpuResource INHERITED; | 169 typedef GrGpuResource INHERITED; |
| 177 }; | 170 }; |
| 178 | 171 |
| 179 #endif | 172 #endif |
| OLD | NEW |