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

Unified Diff: src/gpu/GrXferProcessor.cpp

Issue 1167243002: Fix regression in GrXferProcessor (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrXferProcessor.cpp
diff --git a/src/gpu/GrXferProcessor.cpp b/src/gpu/GrXferProcessor.cpp
index 837e13e2a62ba9b8b54e1d87813f8342d5a14853..67c5dd81a233356b822a8495e038d62066619e70 100644
--- a/src/gpu/GrXferProcessor.cpp
+++ b/src/gpu/GrXferProcessor.cpp
@@ -67,11 +67,11 @@ void GrXferProcessor::getBlendInfo(BlendInfo* blendInfo) const {
void GrXferProcessor::getGLProcessorKey(const GrGLSLCaps& caps, GrProcessorKeyBuilder* b) const {
uint32_t key = this->willReadDstColor() ? 0x1 : 0x0;
if (key) {
- if (this->getDstTexture()) {
+ if (const GrTexture* dstTexture = this->getDstTexture()) {
key |= 0x2;
- }
- if (kTopLeft_GrSurfaceOrigin == this->getDstTexture()->origin()) {
- key |= 0x4;
+ if (kTopLeft_GrSurfaceOrigin == dstTexture->origin()) {
+ key |= 0x4;
+ }
}
if (this->readsCoverage()) {
key |= 0x8;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698