| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/gl/gl_surface_ozone.h" | 5 #include "ui/gl/init/gl_surface_ozone.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/bind.h" | 11 #include "base/bind.h" |
| 12 #include "base/callback.h" | 12 #include "base/callback.h" |
| 13 #include "base/location.h" | 13 #include "base/location.h" |
| 14 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "base/macros.h" | 15 #include "base/macros.h" |
| (...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 683 std::unique_ptr<ui::SurfaceOzoneEGL> surface_ozone = | 683 std::unique_ptr<ui::SurfaceOzoneEGL> surface_ozone = |
| 684 ui::OzonePlatform::GetInstance() | 684 ui::OzonePlatform::GetInstance() |
| 685 ->GetSurfaceFactoryOzone() | 685 ->GetSurfaceFactoryOzone() |
| 686 ->CreateSurfacelessEGLSurfaceForWidget(window); | 686 ->CreateSurfacelessEGLSurfaceForWidget(window); |
| 687 if (!surface_ozone) | 687 if (!surface_ozone) |
| 688 return nullptr; | 688 return nullptr; |
| 689 return InitializeGLSurface(new GLSurfaceOzoneSurfacelessSurfaceImpl( | 689 return InitializeGLSurface(new GLSurfaceOzoneSurfacelessSurfaceImpl( |
| 690 std::move(surface_ozone), window)); | 690 std::move(surface_ozone), window)); |
| 691 } | 691 } |
| 692 | 692 |
| 693 EGLNativeDisplayType GetPlatformDefaultEGLNativeDisplay() { | |
| 694 return ui::OzonePlatform::GetInstance() | |
| 695 ->GetSurfaceFactoryOzone() | |
| 696 ->GetNativeDisplay(); | |
| 697 } | |
| 698 | |
| 699 } // namespace gl | 693 } // namespace gl |
| OLD | NEW |