| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 // Stub implementations of pure virtual Image functions. | 83 // Stub implementations of pure virtual Image functions. |
| 84 virtual void destroyDecodedData(bool) override | 84 virtual void destroyDecodedData(bool) override |
| 85 { | 85 { |
| 86 } | 86 } |
| 87 | 87 |
| 88 virtual bool currentFrameKnownToBeOpaque() override | 88 virtual bool currentFrameKnownToBeOpaque() override |
| 89 { | 89 { |
| 90 return false; | 90 return false; |
| 91 } | 91 } |
| 92 | 92 |
| 93 void draw(GraphicsContext*, const FloatRect&, const FloatRect&, CompositeOpe
rator, WebBlendMode, RespectImageOrientationEnum) override | 93 void draw(GraphicsContext*, const FloatRect&, const FloatRect&, SkXfermode::
Mode, RespectImageOrientationEnum) override |
| 94 { | 94 { |
| 95 } | 95 } |
| 96 | 96 |
| 97 private: | 97 private: |
| 98 | 98 |
| 99 IntSize m_size; | 99 IntSize m_size; |
| 100 | 100 |
| 101 RefPtr<NativeImageSkia> m_nativeImage; | 101 RefPtr<NativeImageSkia> m_nativeImage; |
| 102 }; | 102 }; |
| 103 | 103 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 | 159 |
| 160 OwnPtr<DragImage> testImage = | 160 OwnPtr<DragImage> testImage = |
| 161 DragImage::create(url, testLabel, fontDescription, deviceScaleFactor); | 161 DragImage::create(url, testLabel, fontDescription, deviceScaleFactor); |
| 162 OwnPtr<DragImage> expectedImage = | 162 OwnPtr<DragImage> expectedImage = |
| 163 DragImage::create(url, expectedLabel, fontDescription, deviceScaleFactor
); | 163 DragImage::create(url, expectedLabel, fontDescription, deviceScaleFactor
); |
| 164 | 164 |
| 165 EXPECT_EQ(testImage->size().width(), expectedImage->size().width()); | 165 EXPECT_EQ(testImage->size().width(), expectedImage->size().width()); |
| 166 } | 166 } |
| 167 | 167 |
| 168 } // anonymous namespace | 168 } // anonymous namespace |
| OLD | NEW |