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

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

Issue 1269503007: Unify graphics buffer format & usage enums for GpuMemoryBuffer & SurfaceFactoryOzone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add header to BUILD.gn Created 5 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
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 "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
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
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_
OLDNEW
« no previous file with comments | « ui/ozone/demo/surfaceless_gl_renderer.cc ('k') | ui/ozone/platform/cast/surface_factory_cast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698