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

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

Issue 1738973004: Fix EGL configs with GLSurfaceOzoneSurfaceless. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add back factory method. Created 4 years, 9 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
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 "base/macros.h" 10 #include "base/macros.h"
(...skipping 15 matching lines...) Expand all
26 explicit SurfaceFactoryCast( 26 explicit SurfaceFactoryCast(
27 scoped_ptr<chromecast::CastEglPlatform> egl_platform); 27 scoped_ptr<chromecast::CastEglPlatform> egl_platform);
28 ~SurfaceFactoryCast() override; 28 ~SurfaceFactoryCast() override;
29 29
30 // SurfaceFactoryOzone implementation: 30 // SurfaceFactoryOzone implementation:
31 scoped_ptr<SurfaceOzoneCanvas> CreateCanvasForWidget( 31 scoped_ptr<SurfaceOzoneCanvas> CreateCanvasForWidget(
32 gfx::AcceleratedWidget widget) override; 32 gfx::AcceleratedWidget widget) override;
33 intptr_t GetNativeDisplay() override; 33 intptr_t GetNativeDisplay() override;
34 scoped_ptr<SurfaceOzoneEGL> CreateEGLSurfaceForWidget( 34 scoped_ptr<SurfaceOzoneEGL> CreateEGLSurfaceForWidget(
35 gfx::AcceleratedWidget widget) override; 35 gfx::AcceleratedWidget widget) override;
36 const int32_t* GetEGLSurfaceProperties(const int32_t* desired_list) override;
36 scoped_refptr<NativePixmap> CreateNativePixmap( 37 scoped_refptr<NativePixmap> CreateNativePixmap(
37 gfx::AcceleratedWidget widget, 38 gfx::AcceleratedWidget widget,
38 gfx::Size size, 39 gfx::Size size,
39 gfx::BufferFormat format, 40 gfx::BufferFormat format,
40 gfx::BufferUsage usage) override; 41 gfx::BufferUsage usage) override;
41 bool LoadEGLGLES2Bindings( 42 bool LoadEGLGLES2Bindings(
42 AddGLLibraryCallback add_gl_library, 43 AddGLLibraryCallback add_gl_library,
43 SetGLGetProcAddressProcCallback set_gl_get_proc_address) override; 44 SetGLGetProcAddressProcCallback set_gl_get_proc_address) override;
44 45
45 intptr_t GetNativeWindow(); 46 intptr_t GetNativeWindow();
(...skipping 27 matching lines...) Expand all
73 gfx::Rect overlay_bounds_; 74 gfx::Rect overlay_bounds_;
74 int previous_frame_overlay_count_; 75 int previous_frame_overlay_count_;
75 gfx::Rect previous_frame_overlay_bounds_; 76 gfx::Rect previous_frame_overlay_bounds_;
76 77
77 DISALLOW_COPY_AND_ASSIGN(SurfaceFactoryCast); 78 DISALLOW_COPY_AND_ASSIGN(SurfaceFactoryCast);
78 }; 79 };
79 80
80 } // namespace ui 81 } // namespace ui
81 82
82 #endif // UI_OZONE_PLATFORM_CAST_SURFACE_FACTORY_CAST_H_ 83 #endif // UI_OZONE_PLATFORM_CAST_SURFACE_FACTORY_CAST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698