aboutsummaryrefslogtreecommitdiffhomepage
path: root/debugger
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2015-02-13 11:13:00 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-02-13 11:13:00 -0800
commit9bafc30c7900375d316d47e24412ddfd8bd0b1f2 (patch)
tree570ca3ac3ecf61d501c41ccb155401f6d06deae3 /debugger
parent3555bd88a6513d219a084eabd41e9dff9e513605 (diff)
Remove SkPictureFlat.h include from SkDrawCommands.h
Diffstat (limited to 'debugger')
-rw-r--r--debugger/SkDebugger.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/debugger/SkDebugger.cpp b/debugger/SkDebugger.cpp
index fc61ddade3..61fa3ec642 100644
--- a/debugger/SkDebugger.cpp
+++ b/debugger/SkDebugger.cpp
@@ -66,8 +66,8 @@ void SkDebugger::getOverviewText(const SkTDArray<double>* typeTimes,
const SkTDArray<SkDrawCommand*>& commands = this->getDrawCommands();
SkTDArray<int> counts;
- counts.setCount(LAST_DRAWTYPE_ENUM+1);
- for (int i = 0; i < LAST_DRAWTYPE_ENUM+1; ++i) {
+ counts.setCount(SkDrawCommand::kOpTypeCount);
+ for (int i = 0; i < SkDrawCommand::kOpTypeCount; ++i) {
counts[i] = 0;
}
@@ -80,14 +80,14 @@ void SkDebugger::getOverviewText(const SkTDArray<double>* typeTimes,
#ifdef SK_DEBUG
double totPercent = 0, tempSum = 0;
#endif
- for (int i = 0; i < LAST_DRAWTYPE_ENUM+1; ++i) {
+ for (int i = 0; i < SkDrawCommand::kOpTypeCount; ++i) {
if (0 == counts[i]) {
// if there were no commands of this type then they should've consumed no time
SkASSERT(NULL == typeTimes || 0.0 == (*typeTimes)[i]);
continue;
}
- overview->append(SkDrawCommand::GetCommandString((DrawType) i));
+ overview->append(SkDrawCommand::GetCommandString((SkDrawCommand::OpType) i));
overview->append(": ");
overview->appendS32(counts[i]);
if (typeTimes && totTime >= 0.0) {