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

Unified Diff: src/core/SkSpecialSurface.cpp

Issue 2215323003: Start using RenderTargetProxy (omnibus) (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update Created 4 years, 1 month 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 | « src/core/SkSpecialImage.cpp ('k') | src/effects/GrAlphaThresholdFragmentProcessor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkSpecialSurface.cpp
diff --git a/src/core/SkSpecialSurface.cpp b/src/core/SkSpecialSurface.cpp
index beba9150c4c5f899295653f4a293a919a38fd3b5..45bb75d2c97258a8985363434c9adb3996e7dcb0 100644
--- a/src/core/SkSpecialSurface.cpp
+++ b/src/core/SkSpecialSurface.cpp
@@ -111,6 +111,7 @@ sk_sp<SkSpecialSurface> SkSpecialSurface::MakeRaster(const SkImageInfo& info,
#if SK_SUPPORT_GPU
///////////////////////////////////////////////////////////////////////////////
#include "GrContext.h"
+#include "GrTextureProxy.h"
#include "SkGpuDevice.h"
class SkSpecialSurface_Gpu : public SkSpecialSurface_Base {
@@ -137,10 +138,10 @@ public:
~SkSpecialSurface_Gpu() override { }
sk_sp<SkSpecialImage> onMakeImageSnapshot() override {
- sk_sp<SkSpecialImage> tmp(SkSpecialImage::MakeFromGpu(
+ sk_sp<SkSpecialImage> tmp(SkSpecialImage::MakeDeferredFromGpu(
this->subset(),
kNeedNewImageUniqueID_SpecialImage,
- fRenderTargetContext->asTexture(),
+ fRenderTargetContext->asDeferredTexture(),
sk_ref_sp(fRenderTargetContext->getColorSpace()),
&this->props()));
fRenderTargetContext = nullptr;
« no previous file with comments | « src/core/SkSpecialImage.cpp ('k') | src/effects/GrAlphaThresholdFragmentProcessor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698