OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2007, 2008, 2009 Apple Inc. All rights reserved. | 3 * Copyright (C) 2007, 2008, 2009 Apple Inc. All rights reserved. |
4 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. | 4 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 | 86 |
87 const IntSize& size() const { return m_surface->size(); } | 87 const IntSize& size() const { return m_surface->size(); } |
88 bool isAccelerated() const { return m_surface->isAccelerated(); } | 88 bool isAccelerated() const { return m_surface->isAccelerated(); } |
89 bool isSurfaceValid() const; | 89 bool isSurfaceValid() const; |
90 bool restoreSurface() const; | 90 bool restoreSurface() const; |
91 | 91 |
92 void setIsHidden(bool hidden) { m_surface->setIsHidden(hidden); } | 92 void setIsHidden(bool hidden) { m_surface->setIsHidden(hidden); } |
93 | 93 |
94 GraphicsContext* context() const; | 94 GraphicsContext* context() const; |
95 | 95 |
| 96 void didDraw() { m_surface->didDraw(); } |
| 97 |
96 const SkBitmap& bitmap() const; | 98 const SkBitmap& bitmap() const; |
97 | 99 |
98 PassRefPtr<Image> copyImage(BackingStoreCopy = CopyBackingStore, ScaleBehavi
or = Scaled) const; | 100 PassRefPtr<Image> copyImage(BackingStoreCopy = CopyBackingStore, ScaleBehavi
or = Scaled) const; |
99 // Give hints on the faster copyImage Mode, return DontCopyBackingStore if i
t supports the DontCopyBackingStore behavior | 101 // Give hints on the faster copyImage Mode, return DontCopyBackingStore if i
t supports the DontCopyBackingStore behavior |
100 // or return CopyBackingStore if it doesn't. | 102 // or return CopyBackingStore if it doesn't. |
101 static BackingStoreCopy fastCopyImageMode(); | 103 static BackingStoreCopy fastCopyImageMode(); |
102 | 104 |
103 PassRefPtr<Uint8ClampedArray> getImageData(Multiply, const IntRect&) const; | 105 PassRefPtr<Uint8ClampedArray> getImageData(Multiply, const IntRect&) const; |
104 | 106 |
105 void putByteArray(Multiply, Uint8ClampedArray*, const IntSize& sourceSize, c
onst IntRect& sourceRect, const IntPoint& destPoint); | 107 void putByteArray(Multiply, Uint8ClampedArray*, const IntSize& sourceSize, c
onst IntRect& sourceRect, const IntPoint& destPoint); |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 | 151 |
150 IntSize m_size; | 152 IntSize m_size; |
151 RefPtr<Uint8ClampedArray> m_data; | 153 RefPtr<Uint8ClampedArray> m_data; |
152 }; | 154 }; |
153 | 155 |
154 String PLATFORM_EXPORT ImageDataToDataURL(const ImageDataBuffer&, const String&
mimeType, const double* quality); | 156 String PLATFORM_EXPORT ImageDataToDataURL(const ImageDataBuffer&, const String&
mimeType, const double* quality); |
155 | 157 |
156 } // namespace blink | 158 } // namespace blink |
157 | 159 |
158 #endif // ImageBuffer_h | 160 #endif // ImageBuffer_h |
OLD | NEW |