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

Unified Diff: ui/ozone/platform/drm/gpu/drm_window_unittest.cc

Issue 1311043016: Switch DRM platform to using a separate thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mv-drm-calls-on-thread2
Patch Set: update & fix clang Created 5 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
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_window_proxy.cc ('k') | ui/ozone/platform/drm/gpu/gbm_buffer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/drm/gpu/drm_window_unittest.cc
diff --git a/ui/ozone/platform/drm/gpu/drm_window_unittest.cc b/ui/ozone/platform/drm/gpu/drm_window_unittest.cc
index a865df386f816e13135be403bc63265387d2716a..92d6a3ba3883be964c3d4f51269430e1c9b958aa 100644
--- a/ui/ozone/platform/drm/gpu/drm_window_unittest.cc
+++ b/ui/ozone/platform/drm/gpu/drm_window_unittest.cc
@@ -86,7 +86,7 @@ void DrmWindowTest::SetUp() {
scoped_ptr<ui::DrmWindow> window(new ui::DrmWindow(
kDefaultWidgetHandle, drm_device_manager_.get(), screen_manager_.get()));
window->Initialize();
- window->OnBoundsChanged(
+ window->SetBounds(
gfx::Rect(gfx::Size(kDefaultMode.hdisplay, kDefaultMode.vdisplay)));
screen_manager_->AddWindow(kDefaultWidgetHandle, window.Pass());
}
@@ -139,9 +139,8 @@ TEST_F(DrmWindowTest, CheckCursorSurfaceAfterChangingDevice) {
// Move window to the display on the new device.
screen_manager_->GetWindow(kDefaultWidgetHandle)
- ->OnBoundsChanged(gfx::Rect(0, kDefaultMode.vdisplay,
- kDefaultMode.hdisplay,
- kDefaultMode.vdisplay));
+ ->SetBounds(gfx::Rect(0, kDefaultMode.vdisplay, kDefaultMode.hdisplay,
+ kDefaultMode.vdisplay));
EXPECT_EQ(2u, GetCursorBuffers(drm).size());
// Make sure the cursor is showing on the new display.
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_window_proxy.cc ('k') | ui/ozone/platform/drm/gpu/gbm_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698