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

Unified Diff: src/image/SkSurface_Gpu.cpp

Issue 141063004: remove unneeded SK_SUPPORT_LEGACY_NEWRENDERTARGETDIRECT (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/core/SkSurface.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/image/SkSurface_Gpu.cpp
diff --git a/src/image/SkSurface_Gpu.cpp b/src/image/SkSurface_Gpu.cpp
index 5350fe9c075ab23779229404517888301b854b9a..58f9ef34375d54853940ed44cb781e463c5ac80c 100644
--- a/src/image/SkSurface_Gpu.cpp
+++ b/src/image/SkSurface_Gpu.cpp
@@ -109,14 +109,6 @@ SkSurface* SkSurface::NewRenderTargetDirect(GrRenderTarget* target) {
return SkNEW_ARGS(SkSurface_Gpu, (target));
}
-#ifdef SK_SUPPORT_LEGACY_NEWRENDERTARGETDIRECT
-SkSurface* SkSurface::NewRenderTargetDirect(GrContext* ctx,
- GrRenderTarget* target) {
- SkASSERT(target->getContext() == ctx);
- return SkSurface::NewRenderTargetDirect(target);
-}
-#endif
-
SkSurface* SkSurface::NewRenderTarget(GrContext* ctx, const SkImageInfo& info, int sampleCount) {
if (NULL == ctx) {
return NULL;
« no previous file with comments | « include/core/SkSurface.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698