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

Side by Side Diff: tools/skpdiff/SkPMetric.cpp

Issue 19671002: migrate skpdiff to tools (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #include <cmath> 1 #include <cmath>
2 2
3 #include "SkBitmap.h" 3 #include "SkBitmap.h"
4 #include "skpdiff_util.h" 4 #include "skpdiff_util.h"
5 #include "SkPMetric.h" 5 #include "SkPMetric.h"
6 #include "SkPMetricUtil_generated.h" 6 #include "SkPMetricUtil_generated.h"
7 7
8 struct RGB { 8 struct RGB {
9 float r, g, b; 9 float r, g, b;
10 }; 10 };
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 return fQueuedDiffs[id].result; 462 return fQueuedDiffs[id].result;
463 } 463 }
464 464
465 int SkPMetric::getPointsOfInterestCount(int id) { 465 int SkPMetric::getPointsOfInterestCount(int id) {
466 return fQueuedDiffs[id].poi.count(); 466 return fQueuedDiffs[id].poi.count();
467 } 467 }
468 468
469 SkIPoint* SkPMetric::getPointsOfInterest(int id) { 469 SkIPoint* SkPMetric::getPointsOfInterest(int id) {
470 return fQueuedDiffs[id].poi.begin(); 470 return fQueuedDiffs[id].poi.begin();
471 } 471 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698