OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 | 78 |
79 virtual PassRefPtr<NativeImageSkia> nativeImageForCurrentFrame() | 79 virtual PassRefPtr<NativeImageSkia> nativeImageForCurrentFrame() |
80 { | 80 { |
81 if (m_size.isZero()) | 81 if (m_size.isZero()) |
82 return 0; | 82 return 0; |
83 | 83 |
84 return m_nativeImage; | 84 return m_nativeImage; |
85 } | 85 } |
86 | 86 |
87 // Stub implementations of pure virtual Image functions. | 87 // Stub implementations of pure virtual Image functions. |
88 virtual void destroyDecodedData(bool) | 88 virtual void destroyDecodedData() |
89 { | 89 { |
90 } | 90 } |
91 | 91 |
92 virtual unsigned int decodedSize() const | 92 virtual unsigned int decodedSize() const |
93 { | 93 { |
94 return 0u; | 94 return 0u; |
95 } | 95 } |
96 | 96 |
97 virtual void draw(WebCore::GraphicsContext*, const WebCore::FloatRect&, | 97 virtual void draw(WebCore::GraphicsContext*, const WebCore::FloatRect&, |
98 const WebCore::FloatRect&, WebCore::ColorSpace, | 98 const WebCore::FloatRect&, WebCore::ColorSpace, |
(...skipping 22 matching lines...) Expand all Loading... |
121 ASSERT_FALSE(graphicsLayer->contentsLayer()); | 121 ASSERT_FALSE(graphicsLayer->contentsLayer()); |
122 | 122 |
123 graphicsLayer->setContentsToImage(opaqueImage.get()); | 123 graphicsLayer->setContentsToImage(opaqueImage.get()); |
124 ASSERT_TRUE(graphicsLayer->contentsLayer()->opaque()); | 124 ASSERT_TRUE(graphicsLayer->contentsLayer()->opaque()); |
125 | 125 |
126 graphicsLayer->setContentsToImage(nonOpaqueImage.get()); | 126 graphicsLayer->setContentsToImage(nonOpaqueImage.get()); |
127 ASSERT_FALSE(graphicsLayer->contentsLayer()->opaque()); | 127 ASSERT_FALSE(graphicsLayer->contentsLayer()->opaque()); |
128 } | 128 } |
129 | 129 |
130 } // namespace | 130 } // namespace |
OLD | NEW |