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

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

Issue 2471503002: Mus+Ash: Unify CompositorFrameSinks (Closed)
Patch Set: Added comment 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SURFACES_CONTEXT_PROVIDER_H_ 5 #ifndef SERVICES_UI_SURFACES_SURFACES_CONTEXT_PROVIDER_H_
6 #define SERVICES_UI_SURFACES_SURFACES_CONTEXT_PROVIDER_H_ 6 #define SERVICES_UI_SURFACES_SURFACES_CONTEXT_PROVIDER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 25 matching lines...) Expand all
36 namespace ui { 36 namespace ui {
37 class LatencyInfo; 37 class LatencyInfo;
38 } 38 }
39 39
40 namespace ui { 40 namespace ui {
41 41
42 class CommandBufferDriver; 42 class CommandBufferDriver;
43 class CommandBufferImpl; 43 class CommandBufferImpl;
44 class SurfacesContextProviderDelegate; 44 class SurfacesContextProviderDelegate;
45 45
46 // TODO(fsamuel): This can probably be merged with ContextProviderCommandBuffer.
46 class SurfacesContextProvider : public cc::ContextProvider, 47 class SurfacesContextProvider : public cc::ContextProvider,
47 public base::NonThreadSafe { 48 public base::NonThreadSafe {
48 public: 49 public:
49 SurfacesContextProvider(gfx::AcceleratedWidget widget, 50 SurfacesContextProvider(gfx::AcceleratedWidget widget,
50 scoped_refptr<gpu::GpuChannelHost> gpu_channel); 51 scoped_refptr<gpu::GpuChannelHost> gpu_channel);
51 52
52 void SetDelegate(SurfacesContextProviderDelegate* delegate); 53 void SetDelegate(SurfacesContextProviderDelegate* delegate);
53 54
54 // cc::ContextProvider implementation. 55 // cc::ContextProvider implementation.
55 bool BindToCurrentThread() override; 56 bool BindToCurrentThread() override;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 std::unique_ptr<gpu::CommandBufferProxyImpl> command_buffer_proxy_impl_; 96 std::unique_ptr<gpu::CommandBufferProxyImpl> command_buffer_proxy_impl_;
96 gl::GLSurface::SwapCompletionCallback swap_buffers_completion_callback_; 97 gl::GLSurface::SwapCompletionCallback swap_buffers_completion_callback_;
97 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; 98 scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
98 99
99 DISALLOW_COPY_AND_ASSIGN(SurfacesContextProvider); 100 DISALLOW_COPY_AND_ASSIGN(SurfacesContextProvider);
100 }; 101 };
101 102
102 } // namespace ui 103 } // namespace ui
103 104
104 #endif // SERVICES_UI_SURFACES_SURFACES_CONTEXT_PROVIDER_H_ 105 #endif // SERVICES_UI_SURFACES_SURFACES_CONTEXT_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698