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

Unified Diff: src/gpu/effects/GrXfermodeFragmentProcessor.cpp

Issue 1314923002: GLProgramsTest can now randomly create a tree of GrFragmentProcessors instead of a linear pipeline (Closed) Base URL: https://skia.googlesource.com/skia@cs3_testcreate
Patch Set: removed warnings Created 5 years, 3 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 | tests/GLProgramsTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/effects/GrXfermodeFragmentProcessor.cpp
diff --git a/src/gpu/effects/GrXfermodeFragmentProcessor.cpp b/src/gpu/effects/GrXfermodeFragmentProcessor.cpp
index aa47541cd0309e4a8c9f6f52d3670dcfa5926297..3cb56d07f7ea2ce74d3a5d08f0118781293a3958 100644
--- a/src/gpu/effects/GrXfermodeFragmentProcessor.cpp
+++ b/src/gpu/effects/GrXfermodeFragmentProcessor.cpp
@@ -147,19 +147,13 @@ const GrFragmentProcessor* GrXfermodeFragmentProcessor::CreateFromTwoProcessors(
}
switch (mode) {
case SkXfermode::kClear_Mode:
- SkDebugf("CreateFromTwoProcessors() should not be used with kClear_Mode. "
- "Use GrConstColorProcessor.\n");
return GrConstColorProcessor::Create(GrColor_TRANS_BLACK,
GrConstColorProcessor::kIgnore_InputMode);
break;
case SkXfermode::kSrc_Mode:
- SkDebugf("CreateFromTwoProcessors() should not be used with kSrc_Mode. "
- "Use the src processor directly.\n");
return SkRef(src);
break;
case SkXfermode::kDst_Mode:
- SkDebugf("CreateFromTwoProcessors() should not be used with kDst_Mode. "
- "Use the dst processor directly.\n");
return SkRef(dst);
break;
default:
« no previous file with comments | « no previous file | tests/GLProgramsTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698