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 "SkDisplayable.h" | 10 #include "SkDisplayable.h" |
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |