| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 if (!drawingBuffer->initialize(size)) { | 216 if (!drawingBuffer->initialize(size)) { |
| 217 drawingBuffer->beginDestruction(); | 217 drawingBuffer->beginDestruction(); |
| 218 return PassRefPtr<DrawingBufferForTests>(); | 218 return PassRefPtr<DrawingBufferForTests>(); |
| 219 } | 219 } |
| 220 return drawingBuffer.release(); | 220 return drawingBuffer.release(); |
| 221 } | 221 } |
| 222 | 222 |
| 223 DrawingBufferForTests(PassOwnPtr<WebGraphicsContext3D> context, | 223 DrawingBufferForTests(PassOwnPtr<WebGraphicsContext3D> context, |
| 224 PassOwnPtr<Extensions3DUtil> extensionsUtil, | 224 PassOwnPtr<Extensions3DUtil> extensionsUtil, |
| 225 PreserveDrawingBuffer preserve) | 225 PreserveDrawingBuffer preserve) |
| 226 : DrawingBuffer(context, extensionsUtil, DrawingBuffer::SupportedExtensi
ons(), preserve, WebGraphicsContext3D::Attributes()) | 226 : DrawingBuffer(context, extensionsUtil, false /* multisampleExtensionSu
pported */, |
| 227 false /* packedDepthStencilExtensionSupported */, false /* discardFr
amebufferSupported */, preserve, WebGraphicsContext3D::Attributes()) |
| 227 , m_live(0) | 228 , m_live(0) |
| 228 { } | 229 { } |
| 229 | 230 |
| 230 ~DrawingBufferForTests() override | 231 ~DrawingBufferForTests() override |
| 231 { | 232 { |
| 232 if (m_live) | 233 if (m_live) |
| 233 *m_live = false; | 234 *m_live = false; |
| 234 } | 235 } |
| 235 | 236 |
| 236 bool* m_live; | 237 bool* m_live; |
| (...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 735 m_drawingBuffer->markContentsChanged(); | 736 m_drawingBuffer->markContentsChanged(); |
| 736 EXPECT_TRUE(m_drawingBuffer->prepareMailbox(&mailbox, 0)); | 737 EXPECT_TRUE(m_drawingBuffer->prepareMailbox(&mailbox, 0)); |
| 737 EXPECT_EQ(initialSize, webContext()->mostRecentlyProducedSize()); | 738 EXPECT_EQ(initialSize, webContext()->mostRecentlyProducedSize()); |
| 738 EXPECT_FALSE(mailbox.allowOverlay); | 739 EXPECT_FALSE(mailbox.allowOverlay); |
| 739 | 740 |
| 740 m_drawingBuffer->mailboxReleased(mailbox, false); | 741 m_drawingBuffer->mailboxReleased(mailbox, false); |
| 741 m_drawingBuffer->beginDestruction(); | 742 m_drawingBuffer->beginDestruction(); |
| 742 } | 743 } |
| 743 | 744 |
| 744 } // namespace blink | 745 } // namespace blink |
| OLD | NEW |