Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(263)

Side by Side Diff: include/gpu/GrSurface.h

Issue 1216243003: Rename flushForExternalRead->flushForExternalIO and always call in SkSurface::getTextureHandle (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « include/gpu/GrContext.h ('k') | src/gpu/GrContext.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « include/gpu/GrContext.h ('k') | src/gpu/GrContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698