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

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

Issue 2182543003: Move prepareForExternalIO from GrRenderTarget to GrDrawContext (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 4 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/GrDrawContext.h ('k') | src/gpu/GrDrawContext.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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « include/gpu/GrDrawContext.h ('k') | src/gpu/GrDrawContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698