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

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

Issue 1138263002: Revert of stop calling SkScalarDiv (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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/SkDisplayPost.cpp ('k') | src/animator/SkDrawColor.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 "SkDisplayable.h" 10 #include "SkDisplayable.h"
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 SkDebugf("%s=\"%g\" ", info->fName, SkScalarToFloat(op.fScalar)); 370 SkDebugf("%s=\"%g\" ", info->fName, SkScalarToFloat(op.fScalar));
371 } 371 }
372 break; 372 break;
373 case SkType_String: 373 case SkType_String:
374 case SkType_DynamicString: 374 case SkType_DynamicString:
375 if (op.fString->size() > 0) 375 if (op.fString->size() > 0)
376 SkDebugf("%s=\"%s\" ", info->fName, op.fString->c_str()); 376 SkDebugf("%s=\"%s\" ", info->fName, op.fString->c_str());
377 break; 377 break;
378 case SkType_MSec: 378 case SkType_MSec:
379 if (op.fS32 != blankOp.fS32) { 379 if (op.fS32 != blankOp.fS32) {
380 SkDebugf(" %s=\"%g\" ", info->fName, op.fS32 * 0.001); 380 SkDebugf(" %s=\"%g\" ", info->fName, SkScalarToFloat(SkScalarDiv(op .fS32, 1000)));
381 } 381 }
382 default: 382 default:
383 SkDebugf(""); 383 SkDebugf("");
384 } 384 }
385 } 385 }
386 386
387 #endif 387 #endif
388 388
389 bool SkDisplayable::enable( SkAnimateMaker& ) { 389 bool SkDisplayable::enable( SkAnimateMaker& ) {
390 return false; 390 return false;
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 } 531 }
532 // !!! unclear why displayable is dirtied here 532 // !!! unclear why displayable is dirtied here
533 // if this is called, this breaks fromPath.xml 533 // if this is called, this breaks fromPath.xml
534 // displayable->dirty(); 534 // displayable->dirty();
535 } 535 }
536 536
537 #ifdef SK_DEBUG 537 #ifdef SK_DEBUG
538 void SkDisplayable::validate() { 538 void SkDisplayable::validate() {
539 } 539 }
540 #endif 540 #endif
OLDNEW
« no previous file with comments | « src/animator/SkDisplayPost.cpp ('k') | src/animator/SkDrawColor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698