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

Side by Side Diff: ui/gfx/ozone/impl/file_surface_factory.cc

Issue 275263002: [wip] ozonex: X11 backend for ozone. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « ui/gfx/ozone/impl/file_surface_factory.h ('k') | ui/gfx/ozone/surface_factory_ozone.h » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/gfx/ozone/impl/file_surface_factory.h" 5 #include "ui/gfx/ozone/impl/file_surface_factory.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 FileSurfaceFactory::~FileSurfaceFactory() {} 76 FileSurfaceFactory::~FileSurfaceFactory() {}
77 77
78 SurfaceFactoryOzone::HardwareState 78 SurfaceFactoryOzone::HardwareState
79 FileSurfaceFactory::InitializeHardware() { 79 FileSurfaceFactory::InitializeHardware() {
80 return INITIALIZED; 80 return INITIALIZED;
81 } 81 }
82 82
83 void FileSurfaceFactory::ShutdownHardware() { 83 void FileSurfaceFactory::ShutdownHardware() {
84 } 84 }
85 85
86 AcceleratedWidget FileSurfaceFactory::GetAcceleratedWidget() { 86 intptr_t FileSurfaceFactory::CreatePlatformWindow(
87 ui::PlatformWindowDelegate* delegate) {
87 return 1; 88 return 1;
88 } 89 }
89 90
90 scoped_ptr<SurfaceOzoneCanvas> FileSurfaceFactory::CreateCanvasForWidget( 91 scoped_ptr<SurfaceOzoneCanvas> FileSurfaceFactory::CreateCanvasForWidget(
91 gfx::AcceleratedWidget w) { 92 gfx::AcceleratedWidget w) {
92 return make_scoped_ptr<SurfaceOzoneCanvas>(new FileSurface(location_)); 93 return make_scoped_ptr<SurfaceOzoneCanvas>(new FileSurface(location_));
93 } 94 }
94 95
95 bool FileSurfaceFactory::LoadEGLGLES2Bindings( 96 bool FileSurfaceFactory::LoadEGLGLES2Bindings(
96 AddGLLibraryCallback add_gl_library, 97 AddGLLibraryCallback add_gl_library,
97 SetGLGetProcAddressProcCallback set_gl_get_proc_address) { 98 SetGLGetProcAddressProcCallback set_gl_get_proc_address) {
98 return false; 99 return false;
99 } 100 }
100 101
101 } // namespace gfx 102 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gfx/ozone/impl/file_surface_factory.h ('k') | ui/gfx/ozone/surface_factory_ozone.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698