Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(749)

Side by Side Diff: third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTest.cpp

Issue 1698883004: Revert of Prefer to use the OES_depth24 extension for WebGL's depth-only back buffers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698