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

Unified Diff: dm/DM.cpp

Issue 1263113002: DM: track a direct/indirect bit for each Sink too. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | dm/DMSrcSink.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dm/DM.cpp
diff --git a/dm/DM.cpp b/dm/DM.cpp
index f194304ecf39a1e6e050a2014d8663308d884d41..9dcdff1a0fce6f98f10228d33595e618a31f4c2e 100644
--- a/dm/DM.cpp
+++ b/dm/DM.cpp
@@ -172,8 +172,6 @@ struct TaggedSrc : public SkAutoTDelete<Src> {
struct TaggedSink : public SkAutoTDelete<Sink> {
const char* tag;
- const char* options;
- SinkType type;
};
static const bool kMemcpyOK = true;
@@ -358,14 +356,9 @@ static void push_sink(const char* tag, Sink* s) {
exit(1);
}
- SinkType type = kRaster_SinkType;
- if (sink->enclave() == kGPU_Enclave) { type = kGPU_SinkType; }
- if (stream.bytesWritten() > 0) { type = kVector_SinkType; }
-
TaggedSink& ts = gSinks.push_back();
ts.reset(sink.detach());
ts.tag = tag;
- ts.type = type;
}
static bool gpu_supported() {
@@ -501,7 +494,7 @@ struct Task {
// - the Src vetoes the Sink;
// - this Src / Sink combination is on the blacklist;
// - it's a dry run.
- SkString note(task->src->veto(task->sink.type) ? " (veto)" : "");
+ SkString note(task->src->veto(task->sink->flags()) ? " (veto)" : "");
SkString whyBlacklisted = is_blacklisted(task->sink.tag, task->src.tag,
task->src.options, name.c_str());
if (!whyBlacklisted.isEmpty()) {
« no previous file with comments | « no previous file | dm/DMSrcSink.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698