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

Side by Side Diff: ui/ozone/platform/cast/surface_factory_cast.h

Issue 2190353003: Delete old Ozone surface creation API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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/ozone/ozone.gyp ('k') | ui/ozone/platform/cast/surface_factory_cast.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef UI_OZONE_PLATFORM_CAST_SURFACE_FACTORY_CAST_H_ 5 #ifndef UI_OZONE_PLATFORM_CAST_SURFACE_FACTORY_CAST_H_
6 #define UI_OZONE_PLATFORM_CAST_SURFACE_FACTORY_CAST_H_ 6 #define UI_OZONE_PLATFORM_CAST_SURFACE_FACTORY_CAST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 12 matching lines...) Expand all
23 23
24 // SurfaceFactoryOzone implementation for OzonePlatformCast. 24 // SurfaceFactoryOzone implementation for OzonePlatformCast.
25 class SurfaceFactoryCast : public SurfaceFactoryOzone { 25 class SurfaceFactoryCast : public SurfaceFactoryOzone {
26 public: 26 public:
27 SurfaceFactoryCast(); 27 SurfaceFactoryCast();
28 explicit SurfaceFactoryCast( 28 explicit SurfaceFactoryCast(
29 std::unique_ptr<chromecast::CastEglPlatform> egl_platform); 29 std::unique_ptr<chromecast::CastEglPlatform> egl_platform);
30 ~SurfaceFactoryCast() override; 30 ~SurfaceFactoryCast() override;
31 31
32 // SurfaceFactoryOzone implementation: 32 // SurfaceFactoryOzone implementation:
33 bool UseNewSurfaceAPI() override;
34 scoped_refptr<gl::GLSurface> CreateViewGLSurface( 33 scoped_refptr<gl::GLSurface> CreateViewGLSurface(
35 gl::GLImplementation implementation, 34 gl::GLImplementation implementation,
36 gfx::AcceleratedWidget widget) override; 35 gfx::AcceleratedWidget widget) override;
37 scoped_refptr<gl::GLSurface> CreateOffscreenGLSurface( 36 scoped_refptr<gl::GLSurface> CreateOffscreenGLSurface(
38 gl::GLImplementation implementation, 37 gl::GLImplementation implementation,
39 const gfx::Size& size) override; 38 const gfx::Size& size) override;
40 std::unique_ptr<SurfaceOzoneCanvas> CreateCanvasForWidget( 39 std::unique_ptr<SurfaceOzoneCanvas> CreateCanvasForWidget(
41 gfx::AcceleratedWidget widget) override; 40 gfx::AcceleratedWidget widget) override;
42 intptr_t GetNativeDisplay() override; 41 intptr_t GetNativeDisplay() override;
43 scoped_refptr<NativePixmap> CreateNativePixmap( 42 scoped_refptr<NativePixmap> CreateNativePixmap(
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 gfx::Rect overlay_bounds_; 78 gfx::Rect overlay_bounds_;
80 int previous_frame_overlay_count_; 79 int previous_frame_overlay_count_;
81 gfx::Rect previous_frame_overlay_bounds_; 80 gfx::Rect previous_frame_overlay_bounds_;
82 81
83 DISALLOW_COPY_AND_ASSIGN(SurfaceFactoryCast); 82 DISALLOW_COPY_AND_ASSIGN(SurfaceFactoryCast);
84 }; 83 };
85 84
86 } // namespace ui 85 } // namespace ui
87 86
88 #endif // UI_OZONE_PLATFORM_CAST_SURFACE_FACTORY_CAST_H_ 87 #endif // UI_OZONE_PLATFORM_CAST_SURFACE_FACTORY_CAST_H_
OLDNEW
« no previous file with comments | « ui/ozone/ozone.gyp ('k') | ui/ozone/platform/cast/surface_factory_cast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698