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

Side by Side Diff: services/ui/surfaces/direct_output_surface_ozone.h

Issue 2471503002: Mus+Ash: Unify CompositorFrameSinks (Closed)
Patch Set: Updated deps Created 4 years, 1 month 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 SERVICES_UI_SURFACES_DIRECT_OUTPUT_SURFACE_OZONE_H_ 5 #ifndef SERVICES_UI_SURFACES_DIRECT_OUTPUT_SURFACE_OZONE_H_
6 #define SERVICES_UI_SURFACES_DIRECT_OUTPUT_SURFACE_OZONE_H_ 6 #define SERVICES_UI_SURFACES_DIRECT_OUTPUT_SURFACE_OZONE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 13 matching lines...) Expand all
24 namespace display_compositor { 24 namespace display_compositor {
25 class BufferQueue; 25 class BufferQueue;
26 } 26 }
27 27
28 namespace gpu { 28 namespace gpu {
29 class GpuMemoryBufferManager; 29 class GpuMemoryBufferManager;
30 } 30 }
31 31
32 namespace ui { 32 namespace ui {
33 33
34 class SurfacesContextProvider;
35
36 // An OutputSurface implementation that directly draws and swap to a GL 34 // An OutputSurface implementation that directly draws and swap to a GL
37 // "surfaceless" surface (aka one backed by a buffer managed explicitly in 35 // "surfaceless" surface (aka one backed by a buffer managed explicitly in
38 // mus/ozone. This class is adapted from 36 // mus/ozone. This class is adapted from
39 // GpuSurfacelessBrowserCompositorOutputSurface. 37 // GpuSurfacelessBrowserCompositorOutputSurface.
40 class DirectOutputSurfaceOzone : public cc::OutputSurface { 38 class DirectOutputSurfaceOzone : public cc::OutputSurface {
41 public: 39 public:
42 DirectOutputSurfaceOzone( 40 DirectOutputSurfaceOzone(
43 scoped_refptr<SurfacesContextProvider> context_provider, 41 scoped_refptr<cc::ContextProvider> context_provider,
44 gfx::AcceleratedWidget widget, 42 gfx::AcceleratedWidget widget,
45 cc::SyntheticBeginFrameSource* synthetic_begin_frame_source, 43 cc::SyntheticBeginFrameSource* synthetic_begin_frame_source,
46 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, 44 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager,
47 uint32_t target, 45 uint32_t target,
48 uint32_t internalformat); 46 uint32_t internalformat);
49 47
50 ~DirectOutputSurfaceOzone() override; 48 ~DirectOutputSurfaceOzone() override;
51 49
52 // TODO(rjkroege): Implement the equivalent of Reflector. 50 // TODO(rjkroege): Implement the equivalent of Reflector.
53 51
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 83
86 gfx::Size reshape_size_; 84 gfx::Size reshape_size_;
87 gfx::Size swap_size_; 85 gfx::Size swap_size_;
88 86
89 base::WeakPtrFactory<DirectOutputSurfaceOzone> weak_ptr_factory_; 87 base::WeakPtrFactory<DirectOutputSurfaceOzone> weak_ptr_factory_;
90 }; 88 };
91 89
92 } // namespace ui 90 } // namespace ui
93 91
94 #endif // SERVICES_UI_SURFACES_DIRECT_OUTPUT_SURFACE_OZONE_H_ 92 #endif // SERVICES_UI_SURFACES_DIRECT_OUTPUT_SURFACE_OZONE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698