| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 namespace blink { | 34 namespace blink { |
| 35 | 35 |
| 36 namespace { | 36 namespace { |
| 37 | 37 |
| 38 // URI label for SkDiscardablePixelRef. | 38 // URI label for SkDiscardablePixelRef. |
| 39 const char labelDiscardable[] = "discardable"; | 39 const char labelDiscardable[] = "discardable"; |
| 40 | 40 |
| 41 } // namespace | 41 } // namespace |
| 42 | 42 |
| 43 bool DeferredImageDecoder::s_enabled = false; | 43 bool DeferredImageDecoder::s_enabled = true; |
| 44 | 44 |
| 45 DeferredImageDecoder::DeferredImageDecoder(PassOwnPtr<ImageDecoder> actualDecode
r) | 45 DeferredImageDecoder::DeferredImageDecoder(PassOwnPtr<ImageDecoder> actualDecode
r) |
| 46 : m_allDataReceived(false) | 46 : m_allDataReceived(false) |
| 47 , m_lastDataSize(0) | 47 , m_lastDataSize(0) |
| 48 , m_actualDecoder(actualDecoder) | 48 , m_actualDecoder(actualDecoder) |
| 49 , m_repetitionCount(cAnimationNone) | 49 , m_repetitionCount(cAnimationNone) |
| 50 , m_hasColorProfile(false) | 50 , m_hasColorProfile(false) |
| 51 { | 51 { |
| 52 } | 52 } |
| 53 | 53 |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 return bitmap; | 290 return bitmap; |
| 291 } | 291 } |
| 292 | 292 |
| 293 bool DeferredImageDecoder::hotSpot(IntPoint& hotSpot) const | 293 bool DeferredImageDecoder::hotSpot(IntPoint& hotSpot) const |
| 294 { | 294 { |
| 295 // TODO: Implement. | 295 // TODO: Implement. |
| 296 return m_actualDecoder ? m_actualDecoder->hotSpot(hotSpot) : false; | 296 return m_actualDecoder ? m_actualDecoder->hotSpot(hotSpot) : false; |
| 297 } | 297 } |
| 298 | 298 |
| 299 } // namespace blink | 299 } // namespace blink |
| OLD | NEW |