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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 117 |
118 /** | 118 /** |
119 * After this returns any pending writes to the surface will be issued to th
e backend 3D API and | 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. | 120 * if the surface has MSAA it will be resolved. |
121 */ | 121 */ |
122 void prepareForExternalRead(); | 122 void prepareForExternalIO(); |
123 | 123 |
124 /** Access methods that are only to be used within Skia code. */ | 124 /** Access methods that are only to be used within Skia code. */ |
125 inline GrSurfacePriv surfacePriv(); | 125 inline GrSurfacePriv surfacePriv(); |
126 inline const GrSurfacePriv surfacePriv() const; | 126 inline const GrSurfacePriv surfacePriv() const; |
127 | 127 |
128 typedef void* ReleaseCtx; | 128 typedef void* ReleaseCtx; |
129 typedef void (*ReleaseProc)(ReleaseCtx); | 129 typedef void (*ReleaseProc)(ReleaseCtx); |
130 | 130 |
131 void setRelease(ReleaseProc proc, ReleaseCtx ctx) { | 131 void setRelease(ReleaseProc proc, ReleaseCtx ctx) { |
132 fReleaseProc = proc; | 132 fReleaseProc = proc; |
(...skipping 36 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 |