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

Side by Side Diff: content/renderer/mus/render_widget_mus_connection.h

Issue 2626023007: Passing FrameSinkId to WindowCompositorFrameSink (Closed)
Patch Set: c Created 3 years, 11 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 CONTENT_RENDERER_MUS_RENDER_WIDGET_MUS_CONNECTION_H_ 5 #ifndef CONTENT_RENDERER_MUS_RENDER_WIDGET_MUS_CONNECTION_H_
6 #define CONTENT_RENDERER_MUS_RENDER_WIDGET_MUS_CONNECTION_H_ 6 #define CONTENT_RENDERER_MUS_RENDER_WIDGET_MUS_CONNECTION_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/threading/thread_checker.h" 9 #include "base/threading/thread_checker.h"
10 #include "cc/output/compositor_frame_sink.h" 10 #include "cc/output/compositor_frame_sink.h"
(...skipping 10 matching lines...) Expand all
21 21
22 // Use on main thread. 22 // Use on main thread.
23 class CONTENT_EXPORT RenderWidgetMusConnection 23 class CONTENT_EXPORT RenderWidgetMusConnection
24 : public RenderWidgetInputHandlerDelegate { 24 : public RenderWidgetInputHandlerDelegate {
25 public: 25 public:
26 // Bind to a WindowTreeClient request. 26 // Bind to a WindowTreeClient request.
27 void Bind(mojo::InterfaceRequest<ui::mojom::WindowTreeClient> request); 27 void Bind(mojo::InterfaceRequest<ui::mojom::WindowTreeClient> request);
28 28
29 // Create a cc output surface. 29 // Create a cc output surface.
30 std::unique_ptr<cc::CompositorFrameSink> CreateCompositorFrameSink( 30 std::unique_ptr<cc::CompositorFrameSink> CreateCompositorFrameSink(
31 const cc::FrameSinkId& frame_sink_id,
31 scoped_refptr<cc::ContextProvider> context_provider, 32 scoped_refptr<cc::ContextProvider> context_provider,
32 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager); 33 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager);
33 34
34 static RenderWidgetMusConnection* Get(int routing_id); 35 static RenderWidgetMusConnection* Get(int routing_id);
35 36
36 // Get the connection from a routing_id, if the connection doesn't exist, 37 // Get the connection from a routing_id, if the connection doesn't exist,
37 // a new connection will be created. 38 // a new connection will be created.
38 static RenderWidgetMusConnection* GetOrCreate(int routing_id); 39 static RenderWidgetMusConnection* GetOrCreate(int routing_id);
39 40
40 private: 41 private:
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 77
77 // Used to verify single threaded access. 78 // Used to verify single threaded access.
78 base::ThreadChecker thread_checker_; 79 base::ThreadChecker thread_checker_;
79 80
80 DISALLOW_COPY_AND_ASSIGN(RenderWidgetMusConnection); 81 DISALLOW_COPY_AND_ASSIGN(RenderWidgetMusConnection);
81 }; 82 };
82 83
83 } // namespace content 84 } // namespace content
84 85
85 #endif // CONTENT_RENDERER_MUS_RENDER_WIDGET_MUS_CONNECTION_H_ 86 #endif // CONTENT_RENDERER_MUS_RENDER_WIDGET_MUS_CONNECTION_H_
OLDNEW
« no previous file with comments | « content/renderer/gpu/render_widget_compositor_unittest.cc ('k') | content/renderer/mus/render_widget_mus_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698