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

Side by Side Diff: src/image/SkSurface.cpp

Issue 2164363002: Add SkColorSpace to GrDrawContext (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Remove ':' from comment Created 4 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 | « src/image/SkImage_Gpu.cpp ('k') | src/image/SkSurface_Gpu.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 #include "SkAtomics.h" 8 #include "SkAtomics.h"
9 #include "SkSurface_Base.h" 9 #include "SkSurface_Base.h"
10 #include "SkImagePriv.h" 10 #include "SkImagePriv.h"
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 } 216 }
217 217
218 void SkSurface::prepareForExternalIO() { 218 void SkSurface::prepareForExternalIO() {
219 asSB(this)->onPrepareForExternalIO(); 219 asSB(this)->onPrepareForExternalIO();
220 } 220 }
221 221
222 //////////////////////////////////////////////////////////////////////////////// ////// 222 //////////////////////////////////////////////////////////////////////////////// //////
223 223
224 #if !SK_SUPPORT_GPU 224 #if !SK_SUPPORT_GPU
225 225
226 sk_sp<SkSurface> SkSurface::MakeRenderTargetDirect(GrRenderTarget*, const SkSurf aceProps*) { 226 sk_sp<SkSurface> SkSurface::MakeRenderTargetDirect(GrRenderTarget*, sk_sp<SkColo rSpace>,
227 const SkSurfaceProps*) {
227 return nullptr; 228 return nullptr;
228 } 229 }
229 230
230 sk_sp<SkSurface> SkSurface::MakeRenderTarget(GrContext*, SkBudgeted, const SkIma geInfo&, int, 231 sk_sp<SkSurface> SkSurface::MakeRenderTarget(GrContext*, SkBudgeted, const SkIma geInfo&, int,
231 const SkSurfaceProps*) { 232 const SkSurfaceProps*) {
232 return nullptr; 233 return nullptr;
233 } 234 }
234 235
235 sk_sp<SkSurface> SkSurface::MakeFromBackendTexture(GrContext*, const GrBackendTe xtureDesc&, 236 sk_sp<SkSurface> SkSurface::MakeFromBackendTexture(GrContext*, const GrBackendTe xtureDesc&,
236 const SkSurfaceProps*) { 237 sk_sp<SkColorSpace>, const Sk SurfaceProps*) {
237 return nullptr; 238 return nullptr;
238 } 239 }
239 240
240 sk_sp<SkSurface> SkSurface::MakeFromBackendRenderTarget(GrContext*, 241 sk_sp<SkSurface> SkSurface::MakeFromBackendRenderTarget(GrContext*,
241 const GrBackendRenderTar getDesc&, 242 const GrBackendRenderTar getDesc&,
243 sk_sp<SkColorSpace>,
242 const SkSurfaceProps*) { 244 const SkSurfaceProps*) {
243 return nullptr; 245 return nullptr;
244 } 246 }
245 247
246 sk_sp<SkSurface> MakeFromBackendTextureAsRenderTarget(GrContext*, const GrBacken dTextureDesc&, 248 sk_sp<SkSurface> MakeFromBackendTextureAsRenderTarget(GrContext*, const GrBacken dTextureDesc&,
247 const SkSurfaceProps*) { 249 sk_sp<SkColorSpace>, const SkSurfaceProps*) {
248 return nullptr; 250 return nullptr;
249 } 251 }
250 252
251 #endif 253 #endif
OLDNEW
« no previous file with comments | « src/image/SkImage_Gpu.cpp ('k') | src/image/SkSurface_Gpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698