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

Side by Side Diff: ui/ozone/platform/drm/gpu/drm_surface_factory.cc

Issue 1285183008: Ozone integration. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: add missing license header Created 5 years, 4 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "ui/ozone/platform/drm/gpu/drm_surface_factory.h"
6
7 #include <errno.h>
8
9 #include "ui/gfx/native_widget_types.h"
10 #include "ui/ozone/platform/drm/common/drm_util.h"
11 #include "ui/ozone/platform/drm/gpu/drm_surface.h"
12 #include "ui/ozone/platform/drm/gpu/drm_window.h"
13 #include "ui/ozone/platform/drm/gpu/hardware_display_controller.h"
14 #include "ui/ozone/platform/drm/gpu/screen_manager.h"
15 #include "ui/ozone/public/surface_ozone_canvas.h"
16
17 namespace ui {
18
19 DrmSurfaceFactory::DrmSurfaceFactory(ScreenManager* screen_manager)
20 : screen_manager_(screen_manager) {
21 }
22
23 DrmSurfaceFactory::~DrmSurfaceFactory() {
24 }
25
26 scoped_ptr<ui::SurfaceOzoneCanvas> DrmSurfaceFactory::CreateCanvasForWidget(
27 gfx::AcceleratedWidget widget) {
28 DCHECK(thread_checker_.CalledOnValidThread());
29 return make_scoped_ptr(new DrmSurface(screen_manager_->GetWindow(widget)));
30 }
31
32 bool DrmSurfaceFactory::LoadEGLGLES2Bindings(
33 AddGLLibraryCallback add_gl_library,
34 SetGLGetProcAddressProcCallback set_gl_get_proc_address) {
35 DCHECK(thread_checker_.CalledOnValidThread());
36 return false;
37 }
38
39 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_surface_factory.h ('k') | ui/ozone/platform/drm/gpu/drm_surface_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698