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

Side by Side Diff: src/animator/SkDisplayPost.cpp

Issue 1135053002: stop calling SkScalarDiv (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix xpsdevice Created 5 years, 7 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 | « src/animator/SkAnimatorScript2.cpp ('k') | src/animator/SkDisplayable.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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\" ", SkScalarToFloat(SkScalarDiv(delay, 1000))); 79 SkDebugf("delay=\"%g\" ", delay * 0.001);
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
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 }
OLDNEW
« no previous file with comments | « src/animator/SkAnimatorScript2.cpp ('k') | src/animator/SkDisplayable.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698