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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 int m_maxTextureSize; | 294 int m_maxTextureSize; |
295 int m_sampleCount; | 295 int m_sampleCount; |
296 int m_packAlignment; | 296 int m_packAlignment; |
297 bool m_destructionInProgress; | 297 bool m_destructionInProgress; |
298 bool m_isHidden; | 298 bool m_isHidden; |
299 SkPaint::FilterLevel m_filterLevel; | 299 SkPaint::FilterLevel m_filterLevel; |
300 | 300 |
301 OwnPtr<WebExternalTextureLayer> m_layer; | 301 OwnPtr<WebExternalTextureLayer> m_layer; |
302 | 302 |
303 // All of the mailboxes that this DrawingBuffer has ever created. | 303 // All of the mailboxes that this DrawingBuffer has ever created. |
304 Vector<RefPtr<MailboxInfo> > m_textureMailboxes; | 304 Vector<RefPtr<MailboxInfo>> m_textureMailboxes; |
305 // Mailboxes that were released by the compositor can be used again by this
DrawingBuffer. | 305 // Mailboxes that were released by the compositor can be used again by this
DrawingBuffer. |
306 Deque<WebExternalTextureMailbox> m_recycledMailboxQueue; | 306 Deque<WebExternalTextureMailbox> m_recycledMailboxQueue; |
307 | 307 |
308 RefPtr<ContextEvictionManager> m_contextEvictionManager; | 308 RefPtr<ContextEvictionManager> m_contextEvictionManager; |
309 | 309 |
310 // If the width and height of the Canvas's backing store don't | 310 // If the width and height of the Canvas's backing store don't |
311 // match those that we were given in the most recent call to | 311 // match those that we were given in the most recent call to |
312 // reshape(), then we need an intermediate bitmap to read back the | 312 // reshape(), then we need an intermediate bitmap to read back the |
313 // frame buffer into. This seems to happen when CSS styles are | 313 // frame buffer into. This seems to happen when CSS styles are |
314 // used to resize the Canvas. | 314 // used to resize the Canvas. |
315 SkBitmap m_resizingBitmap; | 315 SkBitmap m_resizingBitmap; |
316 | 316 |
317 // Used to flip a bitmap vertically. | 317 // Used to flip a bitmap vertically. |
318 Vector<uint8_t> m_scanline; | 318 Vector<uint8_t> m_scanline; |
319 }; | 319 }; |
320 | 320 |
321 } // namespace blink | 321 } // namespace blink |
322 | 322 |
323 #endif // DrawingBuffer_h | 323 #endif // DrawingBuffer_h |
OLD | NEW |