OLD | NEW |
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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 FileSurfaceFactory::~FileSurfaceFactory() {} | 78 FileSurfaceFactory::~FileSurfaceFactory() {} |
79 | 79 |
80 SurfaceFactoryOzone::HardwareState | 80 SurfaceFactoryOzone::HardwareState |
81 FileSurfaceFactory::InitializeHardware() { | 81 FileSurfaceFactory::InitializeHardware() { |
82 return INITIALIZED; | 82 return INITIALIZED; |
83 } | 83 } |
84 | 84 |
85 void FileSurfaceFactory::ShutdownHardware() { | 85 void FileSurfaceFactory::ShutdownHardware() { |
86 } | 86 } |
87 | 87 |
88 AcceleratedWidget FileSurfaceFactory::GetAcceleratedWidget() { | |
89 return 1; | |
90 } | |
91 | |
92 scoped_ptr<SurfaceOzone> FileSurfaceFactory::CreateSurfaceForWidget( | 88 scoped_ptr<SurfaceOzone> FileSurfaceFactory::CreateSurfaceForWidget( |
93 AcceleratedWidget widget) { | 89 AcceleratedWidget widget) { |
94 return make_scoped_ptr<SurfaceOzone>(new FileSurface(location_)); | 90 return make_scoped_ptr<SurfaceOzone>(new FileSurface(location_)); |
95 } | 91 } |
96 | 92 |
97 bool FileSurfaceFactory::LoadEGLGLES2Bindings( | 93 bool FileSurfaceFactory::LoadEGLGLES2Bindings( |
98 AddGLLibraryCallback add_gl_library, | 94 AddGLLibraryCallback add_gl_library, |
99 SetGLGetProcAddressProcCallback set_gl_get_proc_address) { | 95 SetGLGetProcAddressProcCallback set_gl_get_proc_address) { |
100 return false; | 96 return false; |
101 } | 97 } |
102 | 98 |
103 } // namespace gfx | 99 } // namespace gfx |
OLD | NEW |