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

Unified Diff: ui/ozone/platform/drm/gpu/screen_manager_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/screen_manager.cc ('k') | ui/ozone/platform/drm/ozone_platform_gbm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/drm/gpu/screen_manager_unittest.cc
diff --git a/ui/ozone/platform/drm/gpu/screen_manager_unittest.cc b/ui/ozone/platform/drm/gpu/screen_manager_unittest.cc
index dab71fb1218a1050f1af8f0b4d05f4e1dfc38c54..ba88b1dab55d9354c88d30c869e5d0aac4e056b6 100644
--- a/ui/ozone/platform/drm/gpu/screen_manager_unittest.cc
+++ b/ui/ozone/platform/drm/gpu/screen_manager_unittest.cc
@@ -374,7 +374,7 @@ TEST_F(ScreenManagerTest, CheckControllerToWindowMappingWithSameBounds) {
scoped_ptr<ui::DrmWindow> window(
new ui::DrmWindow(1, device_manager_.get(), screen_manager_.get()));
window->Initialize();
- window->OnBoundsChanged(GetPrimaryBounds());
+ window->SetBounds(GetPrimaryBounds());
screen_manager_->AddWindow(1, window.Pass());
screen_manager_->AddDisplayController(drm_, kPrimaryCrtc, kPrimaryConnector);
@@ -394,7 +394,7 @@ TEST_F(ScreenManagerTest, CheckControllerToWindowMappingWithDifferentBounds) {
window->Initialize();
gfx::Rect new_bounds = GetPrimaryBounds();
new_bounds.Inset(0, 0, 1, 1);
- window->OnBoundsChanged(new_bounds);
+ window->SetBounds(new_bounds);
screen_manager_->AddWindow(1, window.Pass());
screen_manager_->AddDisplayController(drm_, kPrimaryCrtc, kPrimaryConnector);
@@ -415,7 +415,7 @@ TEST_F(ScreenManagerTest,
scoped_ptr<ui::DrmWindow> window(
new ui::DrmWindow(i, device_manager_.get(), screen_manager_.get()));
window->Initialize();
- window->OnBoundsChanged(GetPrimaryBounds());
+ window->SetBounds(GetPrimaryBounds());
screen_manager_->AddWindow(i, window.Pass());
}
@@ -440,7 +440,7 @@ TEST_F(ScreenManagerTest, ShouldDissociateWindowOnControllerRemoval) {
scoped_ptr<ui::DrmWindow> window(new ui::DrmWindow(
window_id, device_manager_.get(), screen_manager_.get()));
window->Initialize();
- window->OnBoundsChanged(GetPrimaryBounds());
+ window->SetBounds(GetPrimaryBounds());
screen_manager_->AddWindow(window_id, window.Pass());
screen_manager_->AddDisplayController(drm_, kPrimaryCrtc, kPrimaryConnector);
@@ -462,7 +462,7 @@ TEST_F(ScreenManagerTest, EnableControllerWhenWindowHasNoBuffer) {
scoped_ptr<ui::DrmWindow> window(
new ui::DrmWindow(1, device_manager_.get(), screen_manager_.get()));
window->Initialize();
- window->OnBoundsChanged(GetPrimaryBounds());
+ window->SetBounds(GetPrimaryBounds());
screen_manager_->AddWindow(1, window.Pass());
screen_manager_->AddDisplayController(drm_, kPrimaryCrtc, kPrimaryConnector);
@@ -491,7 +491,7 @@ TEST_F(ScreenManagerTest, EnableControllerWhenWindowHasBuffer) {
scoped_ptr<ui::DrmWindow> window(
new ui::DrmWindow(1, device_manager_.get(), screen_manager_.get()));
window->Initialize();
- window->OnBoundsChanged(GetPrimaryBounds());
+ window->SetBounds(GetPrimaryBounds());
scoped_refptr<ui::ScanoutBuffer> buffer = buffer_generator_->Create(
drm_, gfx::BufferFormat::BGRA_8888, GetPrimaryBounds().size());
window->SchedulePageFlip(
« no previous file with comments | « ui/ozone/platform/drm/gpu/screen_manager.cc ('k') | ui/ozone/platform/drm/ozone_platform_gbm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698