OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 #include "SkDisplayPost.h" | 10 #include "SkDisplayPost.h" |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 fEvent.getType(eventType); | 69 fEvent.getType(eventType); |
70 if (eventType->equals("user")) { | 70 if (eventType->equals("user")) { |
71 const char* target = fEvent.findString("id"); | 71 const char* target = fEvent.findString("id"); |
72 SkDebugf("target=\"%s\" ", target); | 72 SkDebugf("target=\"%s\" ", target); |
73 } | 73 } |
74 else | 74 else |
75 SkDebugf("type=\"%s\" ", eventType->c_str()); | 75 SkDebugf("type=\"%s\" ", eventType->c_str()); |
76 delete eventType; | 76 delete eventType; |
77 | 77 |
78 if (delay > 0) { | 78 if (delay > 0) { |
79 SkDebugf("delay=\"%g\" ", delay * 0.001); | 79 SkDebugf("delay=\"%g\" ", SkScalarToFloat(SkScalarDiv(delay, 1000))); |
80 } | 80 } |
81 // if (initialized == false) | 81 // if (initialized == false) |
82 // SkDebugf("(uninitialized) "); | 82 // SkDebugf("(uninitialized) "); |
83 SkString string; | 83 SkString string; |
84 SkDump::GetEnumString(SkType_EventMode, mode, &string); | 84 SkDump::GetEnumString(SkType_EventMode, mode, &string); |
85 if (!string.equals("immediate")) | 85 if (!string.equals("immediate")) |
86 SkDebugf("mode=\"%s\" ", string.c_str()); | 86 SkDebugf("mode=\"%s\" ", string.c_str()); |
87 // !!! could enhance this to search through make hierarchy to show name of s
ink | 87 // !!! could enhance this to search through make hierarchy to show name of s
ink |
88 if (sink.size() > 0) { | 88 if (sink.size() > 0) { |
89 SkDebugf("sink=\"%s\" sinkID=\"%d\" ", sink.c_str(), fSinkID); | 89 SkDebugf("sink=\"%s\" sinkID=\"%d\" ", sink.c_str(), fSinkID); |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 } break; | 289 } break; |
290 case SK_PROPERTY(type): | 290 case SK_PROPERTY(type): |
291 fEvent.setType(*string); | 291 fEvent.setType(*string); |
292 break; | 292 break; |
293 default: | 293 default: |
294 SkASSERT(0); | 294 SkASSERT(0); |
295 return false; | 295 return false; |
296 } | 296 } |
297 return true; | 297 return true; |
298 } | 298 } |
OLD | NEW |