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

Unified Diff: src/gpu/GrXferProcessor.cpp

Issue 2154753003: Introduce GrColorSpaceXform, for gamut conversion on textures (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: src/gpu/GrXferProcessor.cpp
diff --git a/src/gpu/GrXferProcessor.cpp b/src/gpu/GrXferProcessor.cpp
index 76e0ba0fc491198d4fd14776737849dd0f6f2051..7c86ad0867cf49f3b224b64bf7e76e9a829942bb 100644
--- a/src/gpu/GrXferProcessor.cpp
+++ b/src/gpu/GrXferProcessor.cpp
@@ -24,7 +24,7 @@ GrXferProcessor::GrXferProcessor(const DstTexture* dstTexture,
, fDstTextureOffset() {
if (dstTexture && dstTexture->texture()) {
SkASSERT(willReadDstColor);
- fDstTexture.reset(dstTexture->texture());
+ fDstTexture.reset(dstTexture->texture(), nullptr);
fDstTextureOffset = dstTexture->offset();
this->addTextureAccess(&fDstTexture);
this->setWillReadFragmentPosition();

Powered by Google App Engine
This is Rietveld 408576698