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

Side by Side Diff: ui/ozone/platform/dri/dri_surface_factory.cc

Issue 981583005: [Ozone-Dri] Merge the DriWindowDelegate with the implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « ui/ozone/platform/dri/dri_surface.cc ('k') | ui/ozone/platform/dri/dri_surface_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/dri/dri_surface_factory.h" 5 #include "ui/ozone/platform/dri/dri_surface_factory.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 8
9 #include "ui/gfx/native_widget_types.h" 9 #include "ui/gfx/native_widget_types.h"
10 #include "ui/ozone/platform/dri/dri_surface.h" 10 #include "ui/ozone/platform/dri/dri_surface.h"
11 #include "ui/ozone/platform/dri/dri_util.h" 11 #include "ui/ozone/platform/dri/dri_util.h"
12 #include "ui/ozone/platform/dri/dri_window_delegate_impl.h" 12 #include "ui/ozone/platform/dri/dri_window_delegate.h"
13 #include "ui/ozone/platform/dri/dri_window_delegate_manager.h" 13 #include "ui/ozone/platform/dri/dri_window_delegate_manager.h"
14 #include "ui/ozone/platform/dri/hardware_display_controller.h" 14 #include "ui/ozone/platform/dri/hardware_display_controller.h"
15 #include "ui/ozone/public/surface_ozone_canvas.h" 15 #include "ui/ozone/public/surface_ozone_canvas.h"
16 16
17 namespace ui { 17 namespace ui {
18 18
19 DriSurfaceFactory::DriSurfaceFactory(DriWindowDelegateManager* window_manager) 19 DriSurfaceFactory::DriSurfaceFactory(DriWindowDelegateManager* window_manager)
20 : window_manager_(window_manager) { 20 : window_manager_(window_manager) {
21 } 21 }
22 22
23 DriSurfaceFactory::~DriSurfaceFactory() { 23 DriSurfaceFactory::~DriSurfaceFactory() {
24 } 24 }
25 25
26 scoped_ptr<ui::SurfaceOzoneCanvas> DriSurfaceFactory::CreateCanvasForWidget( 26 scoped_ptr<ui::SurfaceOzoneCanvas> DriSurfaceFactory::CreateCanvasForWidget(
27 gfx::AcceleratedWidget widget) { 27 gfx::AcceleratedWidget widget) {
28 return make_scoped_ptr( 28 return make_scoped_ptr(
29 new DriSurface(window_manager_->GetWindowDelegate(widget))); 29 new DriSurface(window_manager_->GetWindowDelegate(widget)));
30 } 30 }
31 31
32 bool DriSurfaceFactory::LoadEGLGLES2Bindings( 32 bool DriSurfaceFactory::LoadEGLGLES2Bindings(
33 AddGLLibraryCallback add_gl_library, 33 AddGLLibraryCallback add_gl_library,
34 SetGLGetProcAddressProcCallback set_gl_get_proc_address) { 34 SetGLGetProcAddressProcCallback set_gl_get_proc_address) {
35 return false; 35 return false;
36 } 36 }
37 37
38 } // namespace ui 38 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/platform/dri/dri_surface.cc ('k') | ui/ozone/platform/dri/dri_surface_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698