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

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

Issue 2768343002: Change namespace from ui to gfx for NativePixmap related code (Closed)
Patch Set: Addressed sadrul's remark Created 3 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 <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 15 matching lines...) Expand all
26 SurfaceFactoryCast(); 26 SurfaceFactoryCast();
27 explicit SurfaceFactoryCast( 27 explicit SurfaceFactoryCast(
28 std::unique_ptr<chromecast::CastEglPlatform> egl_platform); 28 std::unique_ptr<chromecast::CastEglPlatform> egl_platform);
29 ~SurfaceFactoryCast() override; 29 ~SurfaceFactoryCast() override;
30 30
31 // SurfaceFactoryOzone implementation: 31 // SurfaceFactoryOzone implementation:
32 std::vector<gl::GLImplementation> GetAllowedGLImplementations() override; 32 std::vector<gl::GLImplementation> GetAllowedGLImplementations() override;
33 GLOzone* GetGLOzone(gl::GLImplementation implementation) override; 33 GLOzone* GetGLOzone(gl::GLImplementation implementation) override;
34 std::unique_ptr<SurfaceOzoneCanvas> CreateCanvasForWidget( 34 std::unique_ptr<SurfaceOzoneCanvas> CreateCanvasForWidget(
35 gfx::AcceleratedWidget widget) override; 35 gfx::AcceleratedWidget widget) override;
36 scoped_refptr<NativePixmap> CreateNativePixmap( 36 scoped_refptr<gfx::NativePixmap> CreateNativePixmap(
37 gfx::AcceleratedWidget widget, 37 gfx::AcceleratedWidget widget,
38 gfx::Size size, 38 gfx::Size size,
39 gfx::BufferFormat format, 39 gfx::BufferFormat format,
40 gfx::BufferUsage usage) override; 40 gfx::BufferUsage usage) override;
41 41
42 private: 42 private:
43 std::unique_ptr<GLOzoneEglCast> egl_implementation_; 43 std::unique_ptr<GLOzoneEglCast> egl_implementation_;
44 std::unique_ptr<GLOzone> osmesa_implementation_; 44 std::unique_ptr<GLOzone> osmesa_implementation_;
45 45
46 DISALLOW_COPY_AND_ASSIGN(SurfaceFactoryCast); 46 DISALLOW_COPY_AND_ASSIGN(SurfaceFactoryCast);
47 }; 47 };
48 48
49 } // namespace ui 49 } // namespace ui
50 50
51 #endif // UI_OZONE_PLATFORM_CAST_SURFACE_FACTORY_CAST_H_ 51 #endif // UI_OZONE_PLATFORM_CAST_SURFACE_FACTORY_CAST_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/cast/client_native_pixmap_factory_cast.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