| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 const IntSize& size() const { return m_surface->size(); } | 81 const IntSize& size() const { return m_surface->size(); } |
| 82 bool isAccelerated() const { return m_surface->isAccelerated(); } | 82 bool isAccelerated() const { return m_surface->isAccelerated(); } |
| 83 bool isSurfaceValid() const; | 83 bool isSurfaceValid() const; |
| 84 bool restoreSurface() const; | 84 bool restoreSurface() const; |
| 85 | 85 |
| 86 void setIsHidden(bool hidden) { m_surface->setIsHidden(hidden); } | 86 void setIsHidden(bool hidden) { m_surface->setIsHidden(hidden); } |
| 87 | 87 |
| 88 GraphicsContext* context() const; | 88 GraphicsContext* context() const; |
| 89 | 89 |
| 90 // Called at the end of a task that rendered a whole frame | 90 // Called at the end of a task that rendered a whole frame |
| 91 void finalizeFrame(const FloatRect &dirtyRect); | 91 void finalizeFrame(); |
| 92 void didFinalizeFrame(); | 92 void didFinalizeFrame(); |
| 93 | 93 |
| 94 bool isDirty(); | 94 bool isDirty(); |
| 95 | 95 |
| 96 const SkBitmap& bitmap() const; | 96 const SkBitmap& bitmap() const; |
| 97 | 97 |
| 98 PassRefPtr<Image> copyImage(BackingStoreCopy = CopyBackingStore, ScaleBehavi
or = Scaled) const; | 98 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 | 99 // Give hints on the faster copyImage Mode, return DontCopyBackingStore if i
t supports the DontCopyBackingStore behavior |
| 100 // or return CopyBackingStore if it doesn't. | 100 // or return CopyBackingStore if it doesn't. |
| 101 static BackingStoreCopy fastCopyImageMode(); | 101 static BackingStoreCopy fastCopyImageMode(); |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 | 148 |
| 149 IntSize m_size; | 149 IntSize m_size; |
| 150 RefPtr<Uint8ClampedArray> m_data; | 150 RefPtr<Uint8ClampedArray> m_data; |
| 151 }; | 151 }; |
| 152 | 152 |
| 153 String PLATFORM_EXPORT ImageDataToDataURL(const ImageDataBuffer&, const String&
mimeType, const double* quality); | 153 String PLATFORM_EXPORT ImageDataToDataURL(const ImageDataBuffer&, const String&
mimeType, const double* quality); |
| 154 | 154 |
| 155 } // namespace blink | 155 } // namespace blink |
| 156 | 156 |
| 157 #endif // SKY_ENGINE_PLATFORM_GRAPHICS_IMAGEBUFFER_H_ | 157 #endif // SKY_ENGINE_PLATFORM_GRAPHICS_IMAGEBUFFER_H_ |
| OLD | NEW |