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

Unified Diff: gpu/ipc/service/gpu_vsync_provider_unittest_win.cc

Issue 2626413002: Route D3D VSync signal to Compositor (Closed)
Patch Set: Implement GPU VSync provider as gl::VSyncProvider Created 3 years, 11 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: gpu/ipc/service/gpu_vsync_provider_unittest_win.cc
diff --git a/gpu/ipc/service/gpu_vsync_provider_unittest_win.cc b/gpu/ipc/service/gpu_vsync_provider_unittest_win.cc
index 2b96b4a493c80cd660f54c29283f334efc06b8cf..ceeb3324096054cbaa87d9ffb9c7c79ca0a47c9c 100644
--- a/gpu/ipc/service/gpu_vsync_provider_unittest_win.cc
+++ b/gpu/ipc/service/gpu_vsync_provider_unittest_win.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "gpu/ipc/service/gpu_vsync_provider.h"
+#include "gpu/ipc/service/gpu_vsync_provider_win.h"
#include <memory>
@@ -53,7 +53,7 @@ class GpuVSyncProviderTest : public testing::Test {
TEST_F(GpuVSyncProviderTest, VSyncSignalTest) {
SurfaceHandle window = ui::GetHiddenWindow();
- std::unique_ptr<GpuVSyncProvider> provider = GpuVSyncProvider::Create(
+ GpuVSyncProviderForTest provider(
base::Bind(&GpuVSyncProviderTest::OnVSync, base::Unretained(this)),
window);
@@ -65,11 +65,11 @@ TEST_F(GpuVSyncProviderTest, VSyncSignalTest) {
EXPECT_FALSE(wait_result);
EXPECT_EQ(0, vsync_count());
- provider->EnableVSync(true);
+ provider.SetNeedsVSync(true);
vsync_event_.Wait();
- provider->EnableVSync(false);
+ provider.SetNeedsVSync(false);
// Verify that VSync callbacks stop coming after disabling.
// Please note that it might still be possible for one

Powered by Google App Engine
This is Rietveld 408576698