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

Unified Diff: third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridgeTest.cpp

Issue 2875703003: Rewrite two more classes to new blink style. (Closed)
Patch Set: . Created 3 years, 7 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/Canvas2DLayerBridgeTest.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridgeTest.cpp b/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridgeTest.cpp
index f150988465168a14fe92abc3855b9695f273dd85..e369d6aa6bead02a2ba869d36d4e67d6b42189dc 100644
--- a/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridgeTest.cpp
+++ b/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridgeTest.cpp
@@ -156,7 +156,7 @@ class Canvas2DLayerBridgeTest : public Test {
std::unique_ptr<FakeWebGraphicsContext3DProvider> context_provider =
WTF::WrapUnique(new FakeWebGraphicsContext3DProvider(&gl));
- gl.setIsContextLost(true);
+ gl.SetIsContextLost(true);
Canvas2DLayerBridgePtr bridge(AdoptRef(new Canvas2DLayerBridge(
std::move(context_provider), IntSize(300, 150), 0, kNonOpaque,
Canvas2DLayerBridge::kEnableAcceleration, CanvasColorParams())));
@@ -217,7 +217,7 @@ class Canvas2DLayerBridgeTest : public Test {
uint32_t gen_id = bridge->GetOrCreateSurface()->generationID();
bridge->Canvas()->drawRect(SkRect::MakeXYWH(0, 0, 1, 1), flags);
EXPECT_EQ(gen_id, bridge->GetOrCreateSurface()->generationID());
- gl.setIsContextLost(true);
+ gl.SetIsContextLost(true);
EXPECT_EQ(gen_id, bridge->GetOrCreateSurface()->generationID());
bridge->Canvas()->drawRect(SkRect::MakeXYWH(0, 0, 1, 1), flags);
EXPECT_EQ(gen_id, bridge->GetOrCreateSurface()->generationID());
@@ -243,7 +243,7 @@ class Canvas2DLayerBridgeTest : public Test {
// When the context is lost we are not sure if we should still be producing
// GL frames for the compositor or not, so fail to generate frames.
- gl.setIsContextLost(true);
+ gl.SetIsContextLost(true);
cc::TextureMailbox texture_mailbox;
std::unique_ptr<cc::SingleReleaseCallback> release_callback;
@@ -264,7 +264,7 @@ class Canvas2DLayerBridgeTest : public Test {
EXPECT_TRUE(bridge->CheckSurfaceValid());
// When the context is lost we are not sure if we should still be producing
// GL frames for the compositor or not, so fail to generate frames.
- gl.setIsContextLost(true);
+ gl.SetIsContextLost(true);
EXPECT_FALSE(bridge->CheckSurfaceValid());
// Restoration will fail because
@@ -1168,7 +1168,7 @@ TEST_F(Canvas2DLayerBridgeTest, DISABLED_HibernationAbortedDueToLostContext)
MockLogger* mock_logger_ptr = mock_logger.get();
bridge->SetLoggerForTesting(std::move(mock_logger));
- gl.setIsContextLost(true);
+ gl.SetIsContextLost(true);
// Test entering hibernation
std::unique_ptr<WaitableEvent> hibernation_aborted_event =
WTF::MakeUnique<WaitableEvent>();

Powered by Google App Engine
This is Rietveld 408576698