| 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 bool copyRenderingResultsFromDrawingBuffer(DrawingBuffer*, SourceDrawingBuff
er); | 127 bool copyRenderingResultsFromDrawingBuffer(DrawingBuffer*, SourceDrawingBuff
er); |
| 128 | 128 |
| 129 void flush(); // process deferred draw commands immediately | 129 void flush(); // process deferred draw commands immediately |
| 130 void flushGpu(); // Like flush(), but flushes all the way down to the Gpu co
ntext if the surface is accelerated | 130 void flushGpu(); // Like flush(), but flushes all the way down to the Gpu co
ntext if the surface is accelerated |
| 131 | 131 |
| 132 void notifySurfaceInvalid(); | 132 void notifySurfaceInvalid(); |
| 133 | 133 |
| 134 PassRefPtr<SkImage> newSkImageSnapshot(AccelerationHint) const; | 134 PassRefPtr<SkImage> newSkImageSnapshot(AccelerationHint) const; |
| 135 PassRefPtr<Image> newImageSnapshot(AccelerationHint = PreferNoAcceleration)
const; | 135 PassRefPtr<Image> newImageSnapshot(AccelerationHint = PreferNoAcceleration)
const; |
| 136 | 136 |
| 137 DisplayItemClient displayItemClient() const { return toDisplayItemClient(thi
s); } | 137 DisplayItemClient displayItemClient() const { return DisplayItemClient(this)
; } |
| 138 String debugName() const { return "ImageBuffer"; } | 138 String debugName() const { return "ImageBuffer"; } |
| 139 | 139 |
| 140 void draw(GraphicsContext*, const FloatRect&, const FloatRect*, SkXfermode::
Mode); | 140 void draw(GraphicsContext*, const FloatRect&, const FloatRect*, SkXfermode::
Mode); |
| 141 | 141 |
| 142 private: | 142 private: |
| 143 ImageBuffer(PassOwnPtr<ImageBufferSurface>); | 143 ImageBuffer(PassOwnPtr<ImageBufferSurface>); |
| 144 | 144 |
| 145 enum SnapshotState { | 145 enum SnapshotState { |
| 146 InitialSnapshotState, | 146 InitialSnapshotState, |
| 147 DidAcquireSnapshot, | 147 DidAcquireSnapshot, |
| (...skipping 12 matching lines...) Expand all Loading... |
| 160 int height() const { return m_size.height(); } | 160 int height() const { return m_size.height(); } |
| 161 int width() const { return m_size.width(); } | 161 int width() const { return m_size.width(); } |
| 162 | 162 |
| 163 const unsigned char* m_data; | 163 const unsigned char* m_data; |
| 164 const IntSize m_size; | 164 const IntSize m_size; |
| 165 }; | 165 }; |
| 166 | 166 |
| 167 } // namespace blink | 167 } // namespace blink |
| 168 | 168 |
| 169 #endif // ImageBuffer_h | 169 #endif // ImageBuffer_h |
| OLD | NEW |