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 14 matching lines...) Expand all Loading... |
25 | 25 |
26 #include "config.h" | 26 #include "config.h" |
27 #include "platform/graphics/DeferredImageDecoder.h" | 27 #include "platform/graphics/DeferredImageDecoder.h" |
28 | 28 |
29 #include "platform/graphics/DecodingImageGenerator.h" | 29 #include "platform/graphics/DecodingImageGenerator.h" |
30 #include "platform/graphics/ImageDecodingStore.h" | 30 #include "platform/graphics/ImageDecodingStore.h" |
31 #include "platform/graphics/LazyDecodingPixelRef.h" | 31 #include "platform/graphics/LazyDecodingPixelRef.h" |
32 #include "third_party/skia/include/core/SkImageInfo.h" | 32 #include "third_party/skia/include/core/SkImageInfo.h" |
33 #include "wtf/PassOwnPtr.h" | 33 #include "wtf/PassOwnPtr.h" |
34 | 34 |
35 namespace WebCore { | 35 namespace blink { |
36 | 36 |
37 namespace { | 37 namespace { |
38 | 38 |
39 // URI label for SkDiscardablePixelRef. | 39 // URI label for SkDiscardablePixelRef. |
40 const char labelDiscardable[] = "discardable"; | 40 const char labelDiscardable[] = "discardable"; |
41 | 41 |
42 } // namespace | 42 } // namespace |
43 | 43 |
44 bool DeferredImageDecoder::s_enabled = false; | 44 bool DeferredImageDecoder::s_enabled = false; |
45 | 45 |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 generator->setGenerationId(bitmap.getGenerationID()); | 287 generator->setGenerationId(bitmap.getGenerationID()); |
288 return bitmap; | 288 return bitmap; |
289 } | 289 } |
290 | 290 |
291 bool DeferredImageDecoder::hotSpot(IntPoint& hotSpot) const | 291 bool DeferredImageDecoder::hotSpot(IntPoint& hotSpot) const |
292 { | 292 { |
293 // TODO: Implement. | 293 // TODO: Implement. |
294 return m_actualDecoder ? m_actualDecoder->hotSpot(hotSpot) : false; | 294 return m_actualDecoder ? m_actualDecoder->hotSpot(hotSpot) : false; |
295 } | 295 } |
296 | 296 |
297 } // namespace WebCore | 297 } // namespace blink |
OLD | NEW |