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

Unified Diff: third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferSoftwareRenderingTest.cpp

Issue 2402273002: DrawingBuffer: Clean up GL state restoration (Closed)
Patch Set: Incorporate review feedback Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferSoftwareRenderingTest.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferSoftwareRenderingTest.cpp b/third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferSoftwareRenderingTest.cpp
index f53a5966ce9d808e86a6d3837118951d2f084b9b..e45248acb5d1c1dc1ba3a022b3bc361e319eb6f5 100644
--- a/third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferSoftwareRenderingTest.cpp
+++ b/third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferSoftwareRenderingTest.cpp
@@ -54,7 +54,7 @@ class DrawingBufferSoftwareRenderingTest : public Test {
new WebGraphicsContext3DProviderSoftwareRenderingForTests(
std::move(gl)));
m_drawingBuffer = DrawingBufferForTests::create(
- std::move(provider), initialSize, DrawingBuffer::Preserve);
+ std::move(provider), nullptr, initialSize, DrawingBuffer::Preserve);
CHECK(m_drawingBuffer);
}
@@ -70,7 +70,7 @@ TEST_F(DrawingBufferSoftwareRenderingTest, bitmapRecycling) {
IntSize initialSize(InitialWidth, InitialHeight);
IntSize alternateSize(InitialWidth, AlternateHeight);
- m_drawingBuffer->reset(initialSize);
+ m_drawingBuffer->resize(initialSize);
m_drawingBuffer->markContentsChanged();
m_drawingBuffer->PrepareTextureMailbox(
&textureMailbox, &releaseCallback1); // create a bitmap.
@@ -87,7 +87,7 @@ TEST_F(DrawingBufferSoftwareRenderingTest, bitmapRecycling) {
gpu::SyncToken(),
false /* lostResource */); // release bitmap to the recycling queue
EXPECT_EQ(1, m_drawingBuffer->recycledBitmapCount());
- m_drawingBuffer->reset(alternateSize);
+ m_drawingBuffer->resize(alternateSize);
m_drawingBuffer->markContentsChanged();
// Regression test for crbug.com/647896 - Next line must not crash
m_drawingBuffer->PrepareTextureMailbox(

Powered by Google App Engine
This is Rietveld 408576698