| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2008, Google Inc. All rights reserved. | 2 * Copyright (c) 2008, 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 // Returns true if the entire image has been decoded. | 66 // Returns true if the entire image has been decoded. |
| 67 bool isDataComplete() const { return bitmap().isImmutable(); } | 67 bool isDataComplete() const { return bitmap().isImmutable(); } |
| 68 | 68 |
| 69 // Get reference to the internal SkBitmap representing this image. | 69 // Get reference to the internal SkBitmap representing this image. |
| 70 const SkBitmap& bitmap() const { return m_bitmap; } | 70 const SkBitmap& bitmap() const { return m_bitmap; } |
| 71 | 71 |
| 72 void draw( | 72 void draw( |
| 73 GraphicsContext*, | 73 GraphicsContext*, |
| 74 const SkRect& srcRect, | 74 const SkRect& srcRect, |
| 75 const SkRect& destRect, | 75 const SkRect& destRect, |
| 76 CompositeOperator, | 76 SkXfermode::Mode) const; |
| 77 WebBlendMode) const; | |
| 78 | 77 |
| 79 void drawPattern( | 78 void drawPattern( |
| 80 GraphicsContext*, | 79 GraphicsContext*, |
| 81 const FloatRect& srcRect, | 80 const FloatRect& srcRect, |
| 82 const FloatSize& scale, | 81 const FloatSize& scale, |
| 83 const FloatPoint& phase, | 82 const FloatPoint& phase, |
| 84 CompositeOperator, | 83 SkXfermode::Mode, |
| 85 const FloatRect& destRect, | 84 const FloatRect& destRect, |
| 86 WebBlendMode, | |
| 87 const IntSize& repeatSpacing) const; | 85 const IntSize& repeatSpacing) const; |
| 88 | 86 |
| 89 private: | 87 private: |
| 90 NativeImageSkia() { } | 88 NativeImageSkia() { } |
| 91 explicit NativeImageSkia(const SkBitmap& bitmap) : m_bitmap(bitmap) { } | 89 explicit NativeImageSkia(const SkBitmap& bitmap) : m_bitmap(bitmap) { } |
| 92 | 90 |
| 93 SkBitmap m_bitmap; | 91 SkBitmap m_bitmap; |
| 94 }; | 92 }; |
| 95 | 93 |
| 96 } // namespace blink | 94 } // namespace blink |
| 97 | 95 |
| 98 #endif // NativeImageSkia_h | 96 #endif // NativeImageSkia_h |
| OLD | NEW |