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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 bool restoreSurface() const; | 84 bool restoreSurface() const; |
85 void didDraw(const FloatRect& rect) const { m_surface->didDraw(rect); } | 85 void didDraw(const FloatRect& rect) const { m_surface->didDraw(rect); } |
86 | 86 |
87 void setFilterQuality(SkFilterQuality filterQuality) { m_surface->setFilterQ
uality(filterQuality); } | 87 void setFilterQuality(SkFilterQuality filterQuality) { m_surface->setFilterQ
uality(filterQuality); } |
88 void setIsHidden(bool hidden) { m_surface->setIsHidden(hidden); } | 88 void setIsHidden(bool hidden) { m_surface->setIsHidden(hidden); } |
89 | 89 |
90 // Called by subclasses of ImageBufferSurface to install a new canvas object | 90 // Called by subclasses of ImageBufferSurface to install a new canvas object |
91 void resetCanvas(SkCanvas*) const; | 91 void resetCanvas(SkCanvas*) const; |
92 | 92 |
93 SkCanvas* canvas() const; | 93 SkCanvas* canvas() const; |
94 SkCanvas* immediateCanvas() const; | 94 void disableDeferral() const; |
95 | 95 |
96 // Called at the end of a task that rendered a whole frame | 96 // Called at the end of a task that rendered a whole frame |
97 void finalizeFrame(const FloatRect &dirtyRect); | 97 void finalizeFrame(const FloatRect &dirtyRect); |
98 void didFinalizeFrame(); | 98 void didFinalizeFrame(); |
99 | 99 |
100 bool isDirty(); | 100 bool isDirty(); |
101 | 101 |
102 // FIXME: crbug.com/485243 | 102 // FIXME: crbug.com/485243 |
103 // Prefer writePixels() and canvas()->draw*() for writing, and newImageSnaps
hot() for reading | 103 // Prefer writePixels() and canvas()->draw*() for writing, and newImageSnaps
hot() for reading |
104 const SkBitmap& deprecatedBitmapForOverwrite() const; | 104 const SkBitmap& deprecatedBitmapForOverwrite() const; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 unsigned char* pixels() const { return m_data; } | 148 unsigned char* pixels() const { return m_data; } |
149 int height() const { return m_size.height(); } | 149 int height() const { return m_size.height(); } |
150 int width() const { return m_size.width(); } | 150 int width() const { return m_size.width(); } |
151 unsigned char* m_data; | 151 unsigned char* m_data; |
152 IntSize m_size; | 152 IntSize m_size; |
153 }; | 153 }; |
154 | 154 |
155 } // namespace blink | 155 } // namespace blink |
156 | 156 |
157 #endif // ImageBuffer_h | 157 #endif // ImageBuffer_h |
OLD | NEW |