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 #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 "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "ui/gfx/geometry/size.h" | 10 #include "ui/gfx/geometry/size.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 public: | 21 public: |
22 explicit SurfaceFactoryCast( | 22 explicit SurfaceFactoryCast( |
23 scoped_ptr<chromecast::CastEglPlatform> egl_platform); | 23 scoped_ptr<chromecast::CastEglPlatform> egl_platform); |
24 ~SurfaceFactoryCast() override; | 24 ~SurfaceFactoryCast() override; |
25 | 25 |
26 // SurfaceFactoryOzone implementation: | 26 // SurfaceFactoryOzone implementation: |
27 intptr_t GetNativeDisplay() override; | 27 intptr_t GetNativeDisplay() override; |
28 scoped_ptr<SurfaceOzoneEGL> CreateEGLSurfaceForWidget( | 28 scoped_ptr<SurfaceOzoneEGL> CreateEGLSurfaceForWidget( |
29 gfx::AcceleratedWidget widget) override; | 29 gfx::AcceleratedWidget widget) override; |
30 const int32* GetEGLSurfaceProperties(const int32* desired_list) override; | 30 const int32* GetEGLSurfaceProperties(const int32* desired_list) override; |
31 scoped_refptr<NativePixmap> CreateNativePixmap(gfx::AcceleratedWidget w, | 31 scoped_refptr<NativePixmap> CreateNativePixmap( |
32 gfx::Size size, | 32 gfx::AcceleratedWidget w, |
33 BufferFormat format, | 33 gfx::Size size, |
34 BufferUsage usage) override; | 34 gfx::BufferFormat format, |
| 35 gfx::BufferUsage usage) override; |
35 bool LoadEGLGLES2Bindings( | 36 bool LoadEGLGLES2Bindings( |
36 AddGLLibraryCallback add_gl_library, | 37 AddGLLibraryCallback add_gl_library, |
37 SetGLGetProcAddressProcCallback set_gl_get_proc_address) override; | 38 SetGLGetProcAddressProcCallback set_gl_get_proc_address) override; |
38 | 39 |
39 void SetToRelinquishDisplay(const base::Closure& callback); | 40 void SetToRelinquishDisplay(const base::Closure& callback); |
40 intptr_t GetNativeWindow(); | 41 intptr_t GetNativeWindow(); |
41 bool ResizeDisplay(gfx::Size viewport_size); | 42 bool ResizeDisplay(gfx::Size viewport_size); |
42 void ChildDestroyed(); | 43 void ChildDestroyed(); |
43 void SendRelinquishResponse(); | 44 void SendRelinquishResponse(); |
44 | 45 |
(...skipping 26 matching lines...) Expand all Loading... |
71 gfx::Size display_size_; | 72 gfx::Size display_size_; |
72 gfx::Size new_display_size_; | 73 gfx::Size new_display_size_; |
73 scoped_ptr<chromecast::CastEglPlatform> egl_platform_; | 74 scoped_ptr<chromecast::CastEglPlatform> egl_platform_; |
74 | 75 |
75 DISALLOW_COPY_AND_ASSIGN(SurfaceFactoryCast); | 76 DISALLOW_COPY_AND_ASSIGN(SurfaceFactoryCast); |
76 }; | 77 }; |
77 | 78 |
78 } // namespace ui | 79 } // namespace ui |
79 | 80 |
80 #endif // UI_OZONE_PLATFORM_CAST_SURFACE_FACTORY_CAST_H_ | 81 #endif // UI_OZONE_PLATFORM_CAST_SURFACE_FACTORY_CAST_H_ |
OLD | NEW |