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

Unified Diff: skia/ext/benchmarking_canvas.cc

Issue 2502373003: stop using SkXfermode -- use SkBlendMode instead (Closed)
Patch Set: 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
Index: skia/ext/benchmarking_canvas.cc
diff --git a/skia/ext/benchmarking_canvas.cc b/skia/ext/benchmarking_canvas.cc
index 65f28f2b18e7b08386aadd3d3a4f2f4469f9d901..e0f0bd1123232ca1262c83e061ac6b0dc8f10dfa 100644
--- a/skia/ext/benchmarking_canvas.cc
+++ b/skia/ext/benchmarking_canvas.cc
@@ -21,6 +21,8 @@
#include "third_party/skia/include/core/SkString.h"
#include "third_party/skia/include/core/SkTextBlob.h"
+extern const char* SkBlendMode_Name(SkBlendMode);
f(malita) 2016/11/16 21:10:58 Ditto.
reed1 2016/11/16 21:31:17 Done.
+
namespace {
class FlagsBuilder {
@@ -119,7 +121,7 @@ std::unique_ptr<base::Value> AsValue(SkColor color) {
std::unique_ptr<base::Value> AsValue(SkBlendMode mode) {
std::unique_ptr<base::StringValue> val(
- new base::StringValue(SkXfermode::ModeName(mode)));
+ new base::StringValue(SkBlendMode_Name(mode)));
return std::move(val);
}

Powered by Google App Engine
This is Rietveld 408576698