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

Side by Side Diff: content/browser/compositor/image_transport_factory.h

Issue 2873243002: Move components/display_compositor to components/viz/display_compositor (Closed)
Patch Set: Rebase Created 3 years, 7 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 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 CONTENT_BROWSER_COMPOSITOR_IMAGE_TRANSPORT_FACTORY_H_ 5 #ifndef CONTENT_BROWSER_COMPOSITOR_IMAGE_TRANSPORT_FACTORY_H_
6 #define CONTENT_BROWSER_COMPOSITOR_IMAGE_TRANSPORT_FACTORY_H_ 6 #define CONTENT_BROWSER_COMPOSITOR_IMAGE_TRANSPORT_FACTORY_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "build/build_config.h" 12 #include "build/build_config.h"
13 #include "content/common/content_export.h" 13 #include "content/common/content_export.h"
14 #include "gpu/ipc/common/surface_handle.h" 14 #include "gpu/ipc/common/surface_handle.h"
15 #include "ui/gfx/native_widget_types.h" 15 #include "ui/gfx/native_widget_types.h"
16 #include "ui/latency/latency_info.h" 16 #include "ui/latency/latency_info.h"
17 17
18 namespace gfx { 18 namespace gfx {
19 enum class SwapResult; 19 enum class SwapResult;
20 } 20 }
21 21
22 namespace ui { 22 namespace ui {
23 class Compositor; 23 class Compositor;
24 class ContextFactory; 24 class ContextFactory;
25 class ContextFactoryPrivate; 25 class ContextFactoryPrivate;
26 } 26 }
27 27
28 namespace display_compositor { 28 namespace viz {
29 class GLHelper; 29 class GLHelper;
30 } 30 }
31 31
32 namespace gpu { 32 namespace gpu {
33 class GpuChannelEstablishFactory; 33 class GpuChannelEstablishFactory;
34 } 34 }
35 35
36 namespace content { 36 namespace content {
37 37
38 class FrameSinkManagerHost; 38 class FrameSinkManagerHost;
(...skipping 24 matching lines...) Expand all
63 virtual ui::ContextFactory* GetContextFactory() = 0; 63 virtual ui::ContextFactory* GetContextFactory() = 0;
64 64
65 // Gets the image transport factory as the privileged context factory for the 65 // Gets the image transport factory as the privileged context factory for the
66 // compositor. TODO(fsamuel): This interface should eventually go away once 66 // compositor. TODO(fsamuel): This interface should eventually go away once
67 // Mus subsumes this functionality. 67 // Mus subsumes this functionality.
68 virtual ui::ContextFactoryPrivate* GetContextFactoryPrivate() = 0; 68 virtual ui::ContextFactoryPrivate* GetContextFactoryPrivate() = 0;
69 69
70 // Gets a GLHelper instance, associated with the shared context. This 70 // Gets a GLHelper instance, associated with the shared context. This
71 // GLHelper will get destroyed whenever the shared context is lost 71 // GLHelper will get destroyed whenever the shared context is lost
72 // (ImageTransportFactoryObserver::OnLostResources is called). 72 // (ImageTransportFactoryObserver::OnLostResources is called).
73 virtual display_compositor::GLHelper* GetGLHelper() = 0; 73 virtual viz::GLHelper* GetGLHelper() = 0;
74 74
75 // Gets the frame sink manager host instance. 75 // Gets the frame sink manager host instance.
76 virtual FrameSinkManagerHost* GetFrameSinkManagerHost() = 0; 76 virtual FrameSinkManagerHost* GetFrameSinkManagerHost() = 0;
77 77
78 virtual void SetGpuChannelEstablishFactory( 78 virtual void SetGpuChannelEstablishFactory(
79 gpu::GpuChannelEstablishFactory* factory) = 0; 79 gpu::GpuChannelEstablishFactory* factory) = 0;
80 80
81 #if defined(OS_MACOSX) 81 #if defined(OS_MACOSX)
82 // Called with |suspended| as true when the ui::Compositor has been 82 // Called with |suspended| as true when the ui::Compositor has been
83 // disconnected from an NSView and may be attached to another one. Called 83 // disconnected from an NSView and may be attached to another one. Called
84 // with |suspended| as false after the ui::Compositor has been connected to 84 // with |suspended| as false after the ui::Compositor has been connected to
85 // a new NSView and the first commit targeted at the new NSView has 85 // a new NSView and the first commit targeted at the new NSView has
86 // completed. This ensures that content and frames intended for the old 86 // completed. This ensures that content and frames intended for the old
87 // NSView will not flash in the new NSView. 87 // NSView will not flash in the new NSView.
88 virtual void SetCompositorSuspendedForRecycle(ui::Compositor* compositor, 88 virtual void SetCompositorSuspendedForRecycle(ui::Compositor* compositor,
89 bool suspended) = 0; 89 bool suspended) = 0;
90 #endif 90 #endif
91 }; 91 };
92 92
93 } // namespace content 93 } // namespace content
94 94
95 #endif // CONTENT_BROWSER_COMPOSITOR_IMAGE_TRANSPORT_FACTORY_H_ 95 #endif // CONTENT_BROWSER_COMPOSITOR_IMAGE_TRANSPORT_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698