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

Side by Side Diff: ui/gl/init/gl_surface_ozone.cc

Issue 2088453003: Move GLSurface and rename source files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix GYP path. Created 4 years, 6 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
« no previous file with comments | « ui/gl/init/gl_surface_ozone.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ui/gl/init/gl_surface_ozone.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698