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

Unified Diff: ui/ozone/platform/dri/screen_manager_unittest.cc

Issue 393233005: [Ozone-DRI] Convert HardwareDisplayController to use scanout buffers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 5 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/dri/screen_manager.cc ('k') | ui/ozone/platform/dri/test/mock_dri_wrapper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/dri/screen_manager_unittest.cc
diff --git a/ui/ozone/platform/dri/screen_manager_unittest.cc b/ui/ozone/platform/dri/screen_manager_unittest.cc
index 0851000a3854abc53829b2e5169afe2e22353fae..b5a7b3dc678be6fe5fcd1ca0143f0f369d5496e6 100644
--- a/ui/ozone/platform/dri/screen_manager_unittest.cc
+++ b/ui/ozone/platform/dri/screen_manager_unittest.cc
@@ -3,10 +3,10 @@
// found in the LICENSE file.
#include "testing/gtest/include/gtest/gtest.h"
+#include "ui/ozone/platform/dri/dri_buffer.h"
#include "ui/ozone/platform/dri/hardware_display_controller.h"
#include "ui/ozone/platform/dri/screen_manager.h"
#include "ui/ozone/platform/dri/test/mock_dri_wrapper.h"
-#include "ui/ozone/platform/dri/test/mock_surface_generator.h"
namespace {
@@ -17,8 +17,8 @@ const drmModeModeInfo kDefaultMode =
class MockScreenManager : public ui::ScreenManager {
public:
MockScreenManager(ui::DriWrapper* dri,
- ui::ScanoutSurfaceGenerator* surface_generator)
- : ScreenManager(dri, surface_generator), dri_(dri) {}
+ ui::ScanoutBufferGenerator* buffer_generator)
+ : ScreenManager(dri, buffer_generator), dri_(dri) {}
virtual void ForceInitializationOfPrimaryDisplay() OVERRIDE {}
@@ -37,9 +37,9 @@ class ScreenManagerTest : public testing::Test {
virtual void SetUp() OVERRIDE {
dri_.reset(new ui::MockDriWrapper(3));
- surface_generator_.reset(new ui::MockSurfaceGenerator(dri_.get()));
+ buffer_generator_.reset(new ui::DriBufferGenerator(dri_.get()));
screen_manager_.reset(new MockScreenManager(
- dri_.get(), surface_generator_.get()));
+ dri_.get(), buffer_generator_.get()));
}
virtual void TearDown() OVERRIDE {
screen_manager_.reset();
@@ -48,7 +48,7 @@ class ScreenManagerTest : public testing::Test {
protected:
scoped_ptr<ui::MockDriWrapper> dri_;
- scoped_ptr<ui::MockSurfaceGenerator> surface_generator_;
+ scoped_ptr<ui::DriBufferGenerator> buffer_generator_;
scoped_ptr<MockScreenManager> screen_manager_;
private:
« no previous file with comments | « ui/ozone/platform/dri/screen_manager.cc ('k') | ui/ozone/platform/dri/test/mock_dri_wrapper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698