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

Side by Side Diff: ui/ozone/platform/caca/ozone_platform_caca.cc

Issue 1262043002: Implement DRM Native Pixmap using prime buffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@new-master
Patch Set: remove drm header Created 4 years, 9 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/caca/ozone_platform_caca.h" 5 #include "ui/ozone/platform/caca/ozone_platform_caca.h"
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "ui/events/ozone/layout/keyboard_layout_engine_manager.h" 8 #include "ui/events/ozone/layout/keyboard_layout_engine_manager.h"
9 #include "ui/events/ozone/layout/no/no_keyboard_layout_engine.h" 9 #include "ui/events/ozone/layout/no/no_keyboard_layout_engine.h"
10 #include "ui/ozone/common/native_display_delegate_ozone.h" 10 #include "ui/ozone/common/native_display_delegate_ozone.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 const gfx::Rect& bounds) override { 55 const gfx::Rect& bounds) override {
56 scoped_ptr<CacaWindow> caca_window(new CacaWindow( 56 scoped_ptr<CacaWindow> caca_window(new CacaWindow(
57 delegate, window_manager_.get(), event_source_.get(), bounds)); 57 delegate, window_manager_.get(), event_source_.get(), bounds));
58 if (!caca_window->Initialize()) 58 if (!caca_window->Initialize())
59 return nullptr; 59 return nullptr;
60 return std::move(caca_window); 60 return std::move(caca_window);
61 } 61 }
62 scoped_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate() override { 62 scoped_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate() override {
63 return make_scoped_ptr(new NativeDisplayDelegateOzone()); 63 return make_scoped_ptr(new NativeDisplayDelegateOzone());
64 } 64 }
65 base::ScopedFD OpenClientNativePixmapDevice() const override {
66 return base::ScopedFD();
67 }
68 65
69 void InitializeUI() override { 66 void InitializeUI() override {
70 window_manager_.reset(new CacaWindowManager); 67 window_manager_.reset(new CacaWindowManager);
71 overlay_manager_.reset(new StubOverlayManager()); 68 overlay_manager_.reset(new StubOverlayManager());
72 event_source_.reset(new CacaEventSource()); 69 event_source_.reset(new CacaEventSource());
73 cursor_factory_ozone_.reset(new CursorFactoryOzone()); 70 cursor_factory_ozone_.reset(new CursorFactoryOzone());
74 gpu_platform_support_host_.reset(CreateStubGpuPlatformSupportHost()); 71 gpu_platform_support_host_.reset(CreateStubGpuPlatformSupportHost());
75 input_controller_ = CreateStubInputController(); 72 input_controller_ = CreateStubInputController();
76 KeyboardLayoutEngineManager::SetKeyboardLayoutEngine( 73 KeyboardLayoutEngineManager::SetKeyboardLayoutEngine(
77 make_scoped_ptr(new NoKeyboardLayoutEngine())); 74 make_scoped_ptr(new NoKeyboardLayoutEngine()));
(...skipping 15 matching lines...) Expand all
93 DISALLOW_COPY_AND_ASSIGN(OzonePlatformCaca); 90 DISALLOW_COPY_AND_ASSIGN(OzonePlatformCaca);
94 }; 91 };
95 92
96 } // namespace 93 } // namespace
97 94
98 OzonePlatform* CreateOzonePlatformCaca() { 95 OzonePlatform* CreateOzonePlatformCaca() {
99 return new OzonePlatformCaca; 96 return new OzonePlatformCaca;
100 } 97 }
101 98
102 } // namespace ui 99 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/common/stub_client_native_pixmap_factory.cc ('k') | ui/ozone/platform/cast/client_native_pixmap_factory_cast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698