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

Unified Diff: src/gpu/GrPaint.cpp

Issue 751283002: Add XferProcessor factory in GrPaint and GrDrawState. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Update gyp Created 6 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
Index: src/gpu/GrPaint.cpp
diff --git a/src/gpu/GrPaint.cpp b/src/gpu/GrPaint.cpp
index 7d89535a11c7be1d1b2ace710c0b650af2f9a555..9ac62378a87b0e41ff7c2bb06e33b599d28fcb73 100644
--- a/src/gpu/GrPaint.cpp
+++ b/src/gpu/GrPaint.cpp
@@ -10,6 +10,7 @@
#include "GrBlend.h"
#include "GrProcOptInfo.h"
+#include "effects/GrDefaultXferProcessor.h"
#include "effects/GrSimpleTextureEffect.h"
void GrPaint::addColorTextureProcessor(GrTexture* texture, const SkMatrix& matrix) {
@@ -48,6 +49,12 @@ bool GrPaint::isOpaqueAndConstantColor(GrColor* color) const {
return false;
}
+void GrPaint::resetStages() {
+ fColorStages.reset();
+ fCoverageStages.reset();
+ fXPFactory.reset(GrDefaultXPFactory::Create());
bsalomon 2014/11/26 21:02:45 again, do we need the hasXPFactory if we install o
egdaniel 2014/12/01 18:18:24 gone
+}
+
bool GrPaint::getOpaqueAndKnownColor(GrColor* solidColor,
uint32_t* solidColorKnownComponents) const {
@@ -114,3 +121,5 @@ bool GrPaint::getOpaqueAndKnownColor(GrColor* solidColor,
}
return opaque;
}
+
+
joshualitt 2014/11/26 20:10:34 extra newlines

Powered by Google App Engine
This is Rietveld 408576698