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: src/image/SkSurface.cpp

Issue 2187573002: Reduce usage of MakeRenderTargetDirect (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Clean up 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 | « src/gpu/SkGpuDevice.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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
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*, sk_sp<SkColo rSpace>, 226 sk_sp<SkSurface> SkSurface::MakeRenderTargetDirect(GrRenderTarget*, sk_sp<SkColo rSpace>,
227 const SkSurfaceProps*) { 227 const SkSurfaceProps*) {
228 return nullptr; 228 return nullptr;
229 } 229 }
230 230
231 sk_sp<SkSurface> SkSurface::MakeRenderTarget(GrContext*, SkBudgeted, const SkIma geInfo&, int, 231 sk_sp<SkSurface> SkSurface::MakeRenderTarget(GrContext*, SkBudgeted, const SkIma geInfo&,
232 const SkSurfaceProps*) { 232 int, GrSurfaceOrigin, const SkSurfa ceProps*) {
233 return nullptr; 233 return nullptr;
234 } 234 }
235 235
236 sk_sp<SkSurface> SkSurface::MakeFromBackendTexture(GrContext*, const GrBackendTe xtureDesc&, 236 sk_sp<SkSurface> SkSurface::MakeFromBackendTexture(GrContext*, const GrBackendTe xtureDesc&,
237 sk_sp<SkColorSpace>, const Sk SurfaceProps*) { 237 sk_sp<SkColorSpace>, const Sk SurfaceProps*) {
238 return nullptr; 238 return nullptr;
239 } 239 }
240 240
241 sk_sp<SkSurface> SkSurface::MakeFromBackendRenderTarget(GrContext*, 241 sk_sp<SkSurface> SkSurface::MakeFromBackendRenderTarget(GrContext*,
242 const GrBackendRenderTar getDesc&, 242 const GrBackendRenderTar getDesc&,
243 sk_sp<SkColorSpace>, 243 sk_sp<SkColorSpace>,
244 const SkSurfaceProps*) { 244 const SkSurfaceProps*) {
245 return nullptr; 245 return nullptr;
246 } 246 }
247 247
248 sk_sp<SkSurface> MakeFromBackendTextureAsRenderTarget(GrContext*, const GrBacken dTextureDesc&, 248 sk_sp<SkSurface> MakeFromBackendTextureAsRenderTarget(GrContext*, const GrBacken dTextureDesc&,
249 sk_sp<SkColorSpace>, const SkSurfaceProps*) { 249 sk_sp<SkColorSpace>, const SkSurfaceProps*) {
250 return nullptr; 250 return nullptr;
251 } 251 }
252 252
253 #endif 253 #endif
OLDNEW
« no previous file with comments | « src/gpu/SkGpuDevice.cpp ('k') | src/image/SkSurface_Gpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698