| 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 void didDraw() const { m_surface->didDraw(); } | 95 void didDraw() const { m_surface->didDraw(); } |
| 96 | 96 |
| 97 void setFilterLevel(SkPaint::FilterLevel filterLevel) { m_surface->setFilter
Level(filterLevel); } | 97 void setFilterLevel(SkPaint::FilterLevel filterLevel) { m_surface->setFilter
Level(filterLevel); } |
| 98 void setIsHidden(bool hidden) { m_surface->setIsHidden(hidden); } | 98 void setIsHidden(bool hidden) { m_surface->setIsHidden(hidden); } |
| 99 | 99 |
| 100 // Called by subclasses of ImageBufferSurface to install a new canvas object | 100 // Called by subclasses of ImageBufferSurface to install a new canvas object |
| 101 void resetCanvas(SkCanvas*); | 101 void resetCanvas(SkCanvas*); |
| 102 | 102 |
| 103 void willDrawVideo() { m_surface->willDrawVideo(); } | 103 void willDrawVideo() { m_surface->willDrawVideo(); } |
| 104 | 104 |
| 105 GraphicsContext* context() const; | 105 GraphicsContext* context() const; // Deprecated: use canvas() |
| 106 SkCanvas* canvas() const; |
| 106 | 107 |
| 107 // Called at the end of a task that rendered a whole frame | 108 // Called at the end of a task that rendered a whole frame |
| 108 void finalizeFrame(const FloatRect &dirtyRect); | 109 void finalizeFrame(const FloatRect &dirtyRect); |
| 109 void didFinalizeFrame(); | 110 void didFinalizeFrame(); |
| 110 | 111 |
| 111 bool isDirty(); | 112 bool isDirty(); |
| 112 | 113 |
| 113 const SkBitmap& bitmap() const; | 114 const SkBitmap& bitmap() const; |
| 114 | 115 |
| 115 void willAccessPixels() { m_surface->willAccessPixels(); } | 116 void willAccessPixels() { m_surface->willAccessPixels(); } |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 unsigned char* pixels() const { return m_data; } | 167 unsigned char* pixels() const { return m_data; } |
| 167 int height() const { return m_size.height(); } | 168 int height() const { return m_size.height(); } |
| 168 int width() const { return m_size.width(); } | 169 int width() const { return m_size.width(); } |
| 169 unsigned char* m_data; | 170 unsigned char* m_data; |
| 170 IntSize m_size; | 171 IntSize m_size; |
| 171 }; | 172 }; |
| 172 | 173 |
| 173 } // namespace blink | 174 } // namespace blink |
| 174 | 175 |
| 175 #endif // ImageBuffer_h | 176 #endif // ImageBuffer_h |
| OLD | NEW |