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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |
OLD | NEW |