| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) | 2 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) |
| 3 * Copyright (C) 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 #include "platform/geometry/FloatRect.h" | 31 #include "platform/geometry/FloatRect.h" |
| 32 #include "platform/graphics/BitmapImageMetrics.h" | 32 #include "platform/graphics/BitmapImageMetrics.h" |
| 33 #include "platform/graphics/DeferredImageDecoder.h" | 33 #include "platform/graphics/DeferredImageDecoder.h" |
| 34 #include "platform/graphics/ImageObserver.h" | 34 #include "platform/graphics/ImageObserver.h" |
| 35 #include "platform/graphics/StaticBitmapImage.h" | 35 #include "platform/graphics/StaticBitmapImage.h" |
| 36 #include "platform/graphics/paint/PaintCanvas.h" | 36 #include "platform/graphics/paint/PaintCanvas.h" |
| 37 #include "platform/graphics/paint/PaintFlags.h" | 37 #include "platform/graphics/paint/PaintFlags.h" |
| 38 #include "platform/graphics/skia/SkiaUtils.h" | 38 #include "platform/graphics/skia/SkiaUtils.h" |
| 39 #include "platform/instrumentation/PlatformInstrumentation.h" | 39 #include "platform/instrumentation/PlatformInstrumentation.h" |
| 40 #include "platform/instrumentation/tracing/TraceEvent.h" | 40 #include "platform/instrumentation/tracing/TraceEvent.h" |
| 41 #include "wtf/PassRefPtr.h" | 41 #include "platform/wtf/PassRefPtr.h" |
| 42 #include "wtf/PtrUtil.h" | 42 #include "platform/wtf/PtrUtil.h" |
| 43 #include "wtf/text/WTFString.h" | 43 #include "platform/wtf/text/WTFString.h" |
| 44 | 44 |
| 45 namespace blink { | 45 namespace blink { |
| 46 | 46 |
| 47 namespace { | 47 namespace { |
| 48 | 48 |
| 49 ColorBehavior defaultColorBehavior() { | 49 ColorBehavior defaultColorBehavior() { |
| 50 if (RuntimeEnabledFeatures::colorCorrectRenderingEnabled()) | 50 if (RuntimeEnabledFeatures::colorCorrectRenderingEnabled()) |
| 51 return ColorBehavior::tag(); | 51 return ColorBehavior::tag(); |
| 52 return ColorBehavior::transformToGlobalTarget(); | 52 return ColorBehavior::transformToGlobalTarget(); |
| 53 } | 53 } |
| (...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 639 getImageObserver()->animationAdvanced(this); | 639 getImageObserver()->animationAdvanced(this); |
| 640 | 640 |
| 641 return true; | 641 return true; |
| 642 } | 642 } |
| 643 | 643 |
| 644 void BitmapImage::notifyObserversOfAnimationAdvance(TimerBase*) { | 644 void BitmapImage::notifyObserversOfAnimationAdvance(TimerBase*) { |
| 645 getImageObserver()->animationAdvanced(this); | 645 getImageObserver()->animationAdvanced(this); |
| 646 } | 646 } |
| 647 | 647 |
| 648 } // namespace blink | 648 } // namespace blink |
| OLD | NEW |