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 12 matching lines...) Expand all Loading... |
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(gfx::AcceleratedWidget w, |
32 gfx::Size size, | 32 gfx::Size size, |
33 BufferFormat format, | 33 PixmapFormat format, |
34 BufferUsage usage) override; | 34 PixmapUsage usage) override; |
35 bool LoadEGLGLES2Bindings( | 35 bool LoadEGLGLES2Bindings( |
36 AddGLLibraryCallback add_gl_library, | 36 AddGLLibraryCallback add_gl_library, |
37 SetGLGetProcAddressProcCallback set_gl_get_proc_address) override; | 37 SetGLGetProcAddressProcCallback set_gl_get_proc_address) override; |
38 | 38 |
39 void SetToRelinquishDisplay(const base::Closure& callback); | 39 void SetToRelinquishDisplay(const base::Closure& callback); |
40 intptr_t GetNativeWindow(); | 40 intptr_t GetNativeWindow(); |
41 bool ResizeDisplay(gfx::Size viewport_size); | 41 bool ResizeDisplay(gfx::Size viewport_size); |
42 void ChildDestroyed(); | 42 void ChildDestroyed(); |
43 void SendRelinquishResponse(); | 43 void SendRelinquishResponse(); |
44 | 44 |
(...skipping 26 matching lines...) Expand all Loading... |
71 gfx::Size display_size_; | 71 gfx::Size display_size_; |
72 gfx::Size new_display_size_; | 72 gfx::Size new_display_size_; |
73 scoped_ptr<chromecast::CastEglPlatform> egl_platform_; | 73 scoped_ptr<chromecast::CastEglPlatform> egl_platform_; |
74 | 74 |
75 DISALLOW_COPY_AND_ASSIGN(SurfaceFactoryCast); | 75 DISALLOW_COPY_AND_ASSIGN(SurfaceFactoryCast); |
76 }; | 76 }; |
77 | 77 |
78 } // namespace ui | 78 } // namespace ui |
79 | 79 |
80 #endif // UI_OZONE_PLATFORM_CAST_SURFACE_FACTORY_CAST_H_ | 80 #endif // UI_OZONE_PLATFORM_CAST_SURFACE_FACTORY_CAST_H_ |
OLD | NEW |