| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "chromecast/ozone/surface_factory_cast.h" | 5 #include "chromecast/ozone/surface_factory_cast.h" |
| 6 | 6 |
| 7 #include "base/callback_helpers.h" | 7 #include "base/callback_helpers.h" |
| 8 #include "chromecast/ozone/cast_egl_platform.h" | |
| 9 #include "chromecast/ozone/surface_ozone_egl_cast.h" | 8 #include "chromecast/ozone/surface_ozone_egl_cast.h" |
| 9 #include "chromecast/public/cast_egl_platform.h" |
| 10 | 10 |
| 11 namespace chromecast { | 11 namespace chromecast { |
| 12 namespace ozone { | 12 namespace ozone { |
| 13 | 13 |
| 14 SurfaceFactoryCast::SurfaceFactoryCast(scoped_ptr<CastEglPlatform> egl_platform) | 14 SurfaceFactoryCast::SurfaceFactoryCast(scoped_ptr<CastEglPlatform> egl_platform) |
| 15 : state_(kUninitialized), | 15 : state_(kUninitialized), |
| 16 destroy_window_pending_state_(kNoDestroyPending), | 16 destroy_window_pending_state_(kNoDestroyPending), |
| 17 display_type_(0), | 17 display_type_(0), |
| 18 window_(0), | 18 window_(0), |
| 19 default_display_size_(egl_platform->GetDefaultDisplaySize()), | 19 default_display_size_(egl_platform->GetDefaultDisplaySize()), |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 return false; | 167 return false; |
| 168 } | 168 } |
| 169 } | 169 } |
| 170 | 170 |
| 171 return egl_platform_->LoadEGLGLES2Bindings(add_gl_library, | 171 return egl_platform_->LoadEGLGLES2Bindings(add_gl_library, |
| 172 set_gl_get_proc_address); | 172 set_gl_get_proc_address); |
| 173 } | 173 } |
| 174 | 174 |
| 175 } // namespace ozone | 175 } // namespace ozone |
| 176 } // namespace chromecast | 176 } // namespace chromecast |
| OLD | NEW |