OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2010, Google Inc. All rights reserved. | 2 * Copyright (c) 2010, Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 bool multisample() const; | 132 bool multisample() const; |
133 | 133 |
134 Platform3DObject framebuffer() const; | 134 Platform3DObject framebuffer() const; |
135 | 135 |
136 bool discardFramebufferSupported() const { return m_discardFramebufferSuppor
ted; } | 136 bool discardFramebufferSupported() const { return m_discardFramebufferSuppor
ted; } |
137 | 137 |
138 void markContentsChanged(); | 138 void markContentsChanged(); |
139 void setBufferClearNeeded(bool); | 139 void setBufferClearNeeded(bool); |
140 bool bufferClearNeeded() const; | 140 bool bufferClearNeeded() const; |
141 void setIsHidden(bool); | 141 void setIsHidden(bool); |
142 void setFilterLevel(SkPaint::FilterLevel); | 142 void setFilterQuality(SkFilterQuality); |
143 | 143 |
144 WebLayer* platformLayer(); | 144 WebLayer* platformLayer(); |
145 | 145 |
146 WebGraphicsContext3D* context(); | 146 WebGraphicsContext3D* context(); |
147 | 147 |
148 // Returns the actual context attributes for this drawing buffer which may d
iffer from the | 148 // Returns the actual context attributes for this drawing buffer which may d
iffer from the |
149 // requested context attributes due to implementation limits. | 149 // requested context attributes due to implementation limits. |
150 WebGraphicsContext3D::Attributes getActualAttributes() const { return m_actu
alAttributes; } | 150 WebGraphicsContext3D::Attributes getActualAttributes() const { return m_actu
alAttributes; } |
151 | 151 |
152 // WebExternalTextureLayerClient implementation. | 152 // WebExternalTextureLayerClient implementation. |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 | 272 |
273 WebGraphicsContext3D::Attributes m_actualAttributes; | 273 WebGraphicsContext3D::Attributes m_actualAttributes; |
274 unsigned m_internalColorFormat; | 274 unsigned m_internalColorFormat; |
275 unsigned m_colorFormat; | 275 unsigned m_colorFormat; |
276 unsigned m_internalRenderbufferFormat; | 276 unsigned m_internalRenderbufferFormat; |
277 int m_maxTextureSize; | 277 int m_maxTextureSize; |
278 int m_sampleCount; | 278 int m_sampleCount; |
279 int m_packAlignment; | 279 int m_packAlignment; |
280 bool m_destructionInProgress; | 280 bool m_destructionInProgress; |
281 bool m_isHidden; | 281 bool m_isHidden; |
282 SkPaint::FilterLevel m_filterLevel; | 282 SkFilterQuality m_filterQuality; |
283 | 283 |
284 OwnPtr<WebExternalTextureLayer> m_layer; | 284 OwnPtr<WebExternalTextureLayer> m_layer; |
285 | 285 |
286 // All of the mailboxes that this DrawingBuffer has ever created. | 286 // All of the mailboxes that this DrawingBuffer has ever created. |
287 Vector<RefPtr<MailboxInfo>> m_textureMailboxes; | 287 Vector<RefPtr<MailboxInfo>> m_textureMailboxes; |
288 // Mailboxes that were released by the compositor can be used again by this
DrawingBuffer. | 288 // Mailboxes that were released by the compositor can be used again by this
DrawingBuffer. |
289 Deque<WebExternalTextureMailbox> m_recycledMailboxQueue; | 289 Deque<WebExternalTextureMailbox> m_recycledMailboxQueue; |
290 | 290 |
291 // If the width and height of the Canvas's backing store don't | 291 // If the width and height of the Canvas's backing store don't |
292 // match those that we were given in the most recent call to | 292 // match those that we were given in the most recent call to |
293 // reshape(), then we need an intermediate bitmap to read back the | 293 // reshape(), then we need an intermediate bitmap to read back the |
294 // frame buffer into. This seems to happen when CSS styles are | 294 // frame buffer into. This seems to happen when CSS styles are |
295 // used to resize the Canvas. | 295 // used to resize the Canvas. |
296 SkBitmap m_resizingBitmap; | 296 SkBitmap m_resizingBitmap; |
297 | 297 |
298 // Used to flip a bitmap vertically. | 298 // Used to flip a bitmap vertically. |
299 Vector<uint8_t> m_scanline; | 299 Vector<uint8_t> m_scanline; |
300 }; | 300 }; |
301 | 301 |
302 } // namespace blink | 302 } // namespace blink |
303 | 303 |
304 #endif // DrawingBuffer_h | 304 #endif // DrawingBuffer_h |
OLD | NEW |