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

Side by Side Diff: dm/DMExpectationsTask.cpp

Issue 553583004: Remove expectations / -r from DM entirely. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 6 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 unified diff | Download patch
« no previous file with comments | « dm/DMExpectationsTask.h ('k') | dm/DMGpuGMTask.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #include "DMExpectationsTask.h"
2 #include "DMUtil.h"
3
4 namespace DM {
5
6 ExpectationsTask::ExpectationsTask(const Task& parent,
7 const Expectations& expectations,
8 SkBitmap bitmap)
9 : CpuTask(parent)
10 , fName(parent.name()) // Masquerade as parent so failures are attributed t o it.
11 , fExpectations(expectations)
12 , fBitmap(bitmap)
13 {}
14
15 void ExpectationsTask::draw() {
16 if (!fExpectations.check(*this, fBitmap)) {
17 this->fail();
18 }
19 }
20
21 } // namespace DM
OLDNEW
« no previous file with comments | « dm/DMExpectationsTask.h ('k') | dm/DMGpuGMTask.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698