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

Side by Side Diff: ui/ozone/platform/drm/ozone_platform_gbm.cc

Issue 2613493002: Fix namespace for src/ui/display/. (Closed)
Patch Set: Rebase. 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/ozone/platform/drm/ozone_platform_gbm.h" 5 #include "ui/ozone/platform/drm/ozone_platform_gbm.h"
6 6
7 #include <dlfcn.h> 7 #include <dlfcn.h>
8 #include <fcntl.h> 8 #include <fcntl.h>
9 #include <gbm.h> 9 #include <gbm.h>
10 #include <stdlib.h> 10 #include <stdlib.h>
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 << "drm_thread_proxy_ should exist (and be running) here."; 128 << "drm_thread_proxy_ should exist (and be running) here.";
129 adapter = mus_thread_proxy_.get(); 129 adapter = mus_thread_proxy_.get();
130 } 130 }
131 131
132 std::unique_ptr<DrmWindowHost> platform_window(new DrmWindowHost( 132 std::unique_ptr<DrmWindowHost> platform_window(new DrmWindowHost(
133 delegate, bounds, adapter, event_factory_ozone_.get(), cursor_.get(), 133 delegate, bounds, adapter, event_factory_ozone_.get(), cursor_.get(),
134 window_manager_.get(), display_manager_.get(), overlay_manager_.get())); 134 window_manager_.get(), display_manager_.get(), overlay_manager_.get()));
135 platform_window->Initialize(); 135 platform_window->Initialize();
136 return std::move(platform_window); 136 return std::move(platform_window);
137 } 137 }
138 std::unique_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate() 138 std::unique_ptr<display::NativeDisplayDelegate> CreateNativeDisplayDelegate()
139 override { 139 override {
140 return base::MakeUnique<DrmNativeDisplayDelegate>(display_manager_.get()); 140 return base::MakeUnique<DrmNativeDisplayDelegate>(display_manager_.get());
141 } 141 }
142 void InitializeUI() override { 142 void InitializeUI() override {
143 InitParams default_params; 143 InitParams default_params;
144 InitializeUI(default_params); 144 InitializeUI(default_params);
145 } 145 }
146 void InitializeUI(const InitParams& args) override { 146 void InitializeUI(const InitParams& args) override {
147 // Ozone drm can operate in three modes configured at runtime: 147 // Ozone drm can operate in three modes configured at runtime:
148 // 1. legacy mode where browser and gpu components communicate 148 // 1. legacy mode where browser and gpu components communicate
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 DISALLOW_COPY_AND_ASSIGN(OzonePlatformGbm); 275 DISALLOW_COPY_AND_ASSIGN(OzonePlatformGbm);
276 }; 276 };
277 277
278 } // namespace 278 } // namespace
279 279
280 OzonePlatform* CreateOzonePlatformGbm() { 280 OzonePlatform* CreateOzonePlatformGbm() {
281 return new OzonePlatformGbm; 281 return new OzonePlatformGbm;
282 } 282 }
283 283
284 } // namespace ui 284 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/mus_thread_proxy.cc ('k') | ui/ozone/platform/headless/ozone_platform_headless.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698