| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 bool isExpensiveToPaint() const { return m_surface->isExpensiveToPaint(); } | 83 bool isExpensiveToPaint() const { return m_surface->isExpensiveToPaint(); } |
| 84 void prepareSurfaceForPaintingIfNeeded() { m_surface->prepareSurfaceForPaint
ingIfNeeded(); } | 84 void prepareSurfaceForPaintingIfNeeded() { m_surface->prepareSurfaceForPaint
ingIfNeeded(); } |
| 85 bool isSurfaceValid() const; | 85 bool isSurfaceValid() const; |
| 86 bool restoreSurface() const; | 86 bool restoreSurface() const; |
| 87 void didDraw(const FloatRect&) const; | 87 void didDraw(const FloatRect&) const; |
| 88 bool wasDrawnToAfterSnapshot() const { return m_snapshotState == DrawnToAfte
rSnapshot; } | 88 bool wasDrawnToAfterSnapshot() const { return m_snapshotState == DrawnToAfte
rSnapshot; } |
| 89 | 89 |
| 90 void setFilterQuality(SkFilterQuality filterQuality) { m_surface->setFilterQ
uality(filterQuality); } | 90 void setFilterQuality(SkFilterQuality filterQuality) { m_surface->setFilterQ
uality(filterQuality); } |
| 91 void setIsHidden(bool hidden) { m_surface->setIsHidden(hidden); } | 91 void setIsHidden(bool hidden) { m_surface->setIsHidden(hidden); } |
| 92 | 92 |
| 93 bool hasSingleSecurityOrigin() const; |
| 94 |
| 93 // Called by subclasses of ImageBufferSurface to install a new canvas object
. | 95 // Called by subclasses of ImageBufferSurface to install a new canvas object
. |
| 94 // Virtual for mocking | 96 // Virtual for mocking |
| 95 virtual void resetCanvas(SkCanvas*) const; | 97 virtual void resetCanvas(SkCanvas*) const; |
| 96 | 98 |
| 97 SkCanvas* canvas() const; | 99 SkCanvas* canvas() const; |
| 98 void disableDeferral() const; | 100 void disableDeferral() const; |
| 99 | 101 |
| 100 // Called at the end of a task that rendered a whole frame | 102 // Called at the end of a task that rendered a whole frame |
| 101 void finalizeFrame(const FloatRect &dirtyRect); | 103 void finalizeFrame(const FloatRect &dirtyRect); |
| 102 void didFinalizeFrame(); | 104 void didFinalizeFrame(); |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 int height() const { return m_size.height(); } | 164 int height() const { return m_size.height(); } |
| 163 int width() const { return m_size.width(); } | 165 int width() const { return m_size.width(); } |
| 164 | 166 |
| 165 const unsigned char* m_data; | 167 const unsigned char* m_data; |
| 166 const IntSize m_size; | 168 const IntSize m_size; |
| 167 }; | 169 }; |
| 168 | 170 |
| 169 } // namespace blink | 171 } // namespace blink |
| 170 | 172 |
| 171 #endif // ImageBuffer_h | 173 #endif // ImageBuffer_h |
| OLD | NEW |