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 * | 7 * |
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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
56 { | 56 { |
57 ++m_decodersDestroyed; | 57 ++m_decodersDestroyed; |
58 } | 58 } |
59 | 59 |
60 virtual void frameBufferRequested() | 60 virtual void frameBufferRequested() |
61 { | 61 { |
62 // Decoder is never used by ImageDecodingStore. | 62 // Decoder is never used by ImageDecodingStore. |
63 ASSERT_TRUE(false); | 63 ASSERT_TRUE(false); |
64 } | 64 } |
65 | 65 |
66 virtual ImageFrame::FrameStatus frameStatus() | 66 virtual ImageFrame::Status frameStatus() |
Peter Kasting
2013/08/23 01:14:02
Nit: Name this status() (same everywhere else in t
urvang (Google)
2013/08/23 02:34:31
Done.
| |
67 { | 67 { |
68 return ImageFrame::FramePartial; | 68 return ImageFrame::FramePartial; |
69 } | 69 } |
70 | 70 |
71 virtual size_t frameCount() { return 1; } | 71 virtual size_t frameCount() { return 1; } |
72 virtual int repetitionCount() const { return cAnimationNone; } | 72 virtual int repetitionCount() const { return cAnimationNone; } |
73 virtual float frameDuration() const { return 0; } | 73 virtual float frameDuration() const { return 0; } |
74 | 74 |
75 protected: | 75 protected: |
76 PassOwnPtr<ScaledImageFragment> createCompleteImage(const SkISize& size, boo l discardable = false, size_t index = 0) | 76 PassOwnPtr<ScaledImageFragment> createCompleteImage(const SkISize& size, boo l discardable = false, size_t index = 0) |
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
451 const ScaledImageFragment* cachedImage = lockCache(SkISize::Make(1, 1)); | 451 const ScaledImageFragment* cachedImage = lockCache(SkISize::Make(1, 1)); |
452 ASSERT_TRUE(cachedImage); | 452 ASSERT_TRUE(cachedImage); |
453 ImageDecodingStore::instance()->clear(); | 453 ImageDecodingStore::instance()->clear(); |
454 EXPECT_EQ(1u, ImageDecodingStore::instance()->cacheEntries()); | 454 EXPECT_EQ(1u, ImageDecodingStore::instance()->cacheEntries()); |
455 | 455 |
456 unlockCache(cachedImage); | 456 unlockCache(cachedImage); |
457 EXPECT_EQ(1u, ImageDecodingStore::instance()->cacheEntries()); | 457 EXPECT_EQ(1u, ImageDecodingStore::instance()->cacheEntries()); |
458 } | 458 } |
459 | 459 |
460 } // namespace | 460 } // namespace |
OLD | NEW |