| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 bool m_isHidden; | 254 bool m_isHidden; |
| 255 bool m_isDeferralEnabled; | 255 bool m_isDeferralEnabled; |
| 256 bool m_isRegisteredTaskObserver; | 256 bool m_isRegisteredTaskObserver; |
| 257 bool m_renderingTaskCompletedForCurrentFrame; | 257 bool m_renderingTaskCompletedForCurrentFrame; |
| 258 bool m_softwareRenderingWhileHidden; | 258 bool m_softwareRenderingWhileHidden; |
| 259 bool m_surfaceCreationFailedAtLeastOnce = false; | 259 bool m_surfaceCreationFailedAtLeastOnce = false; |
| 260 bool m_hibernationScheduled = false; | 260 bool m_hibernationScheduled = false; |
| 261 | 261 |
| 262 friend class Canvas2DLayerBridgeTest; | 262 friend class Canvas2DLayerBridgeTest; |
| 263 friend class CanvasRenderingContext2DTest; | 263 friend class CanvasRenderingContext2DTest; |
| 264 friend class HTMLCanvasPainterTestForSPv2; |
| 264 | 265 |
| 265 uint32_t m_lastImageId; | 266 uint32_t m_lastImageId; |
| 266 | 267 |
| 267 enum { | 268 enum { |
| 268 // We should normally not have more that two active mailboxes at a time, | 269 // We should normally not have more that two active mailboxes at a time, |
| 269 // but sometime we may have three due to the async nature of mailbox han
dling. | 270 // but sometime we may have three due to the async nature of mailbox han
dling. |
| 270 MaxActiveMailboxes = 3, | 271 MaxActiveMailboxes = 3, |
| 271 }; | 272 }; |
| 272 | 273 |
| 273 Deque<MailboxInfo, MaxActiveMailboxes> m_mailboxes; | 274 Deque<MailboxInfo, MaxActiveMailboxes> m_mailboxes; |
| 274 GLenum m_lastFilter; | 275 GLenum m_lastFilter; |
| 275 AccelerationMode m_accelerationMode; | 276 AccelerationMode m_accelerationMode; |
| 276 OpacityMode m_opacityMode; | 277 OpacityMode m_opacityMode; |
| 277 const IntSize m_size; | 278 const IntSize m_size; |
| 278 int m_recordingPixelCount; | 279 int m_recordingPixelCount; |
| 279 | 280 |
| 280 #if USE_IOSURFACE_FOR_2D_CANVAS | 281 #if USE_IOSURFACE_FOR_2D_CANVAS |
| 281 // Each element in this vector represents an IOSurface backed texture that | 282 // Each element in this vector represents an IOSurface backed texture that |
| 282 // is ready to be reused. | 283 // is ready to be reused. |
| 283 // Elements in this vector can safely be purged in low memory conditions. | 284 // Elements in this vector can safely be purged in low memory conditions. |
| 284 Vector<ImageInfo> m_imageInfoCache; | 285 Vector<ImageInfo> m_imageInfoCache; |
| 285 #endif // USE_IOSURFACE_FOR_2D_CANVAS | 286 #endif // USE_IOSURFACE_FOR_2D_CANVAS |
| 286 }; | 287 }; |
| 287 | 288 |
| 288 } // namespace blink | 289 } // namespace blink |
| 289 | 290 |
| 290 #endif | 291 #endif |
| OLD | NEW |