OLD | NEW |
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_DELEGATED_FRAME_HOST_H_ | 5 #ifndef CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ |
6 #define CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ | 6 #define CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ |
7 | 7 |
| 8 #include "base/gtest_prod_util.h" |
8 #include "cc/layers/delegated_frame_provider.h" | 9 #include "cc/layers/delegated_frame_provider.h" |
9 #include "cc/layers/delegated_frame_resource_collection.h" | 10 #include "cc/layers/delegated_frame_resource_collection.h" |
10 #include "cc/output/copy_output_result.h" | 11 #include "cc/output/copy_output_result.h" |
11 #include "cc/surfaces/surface_factory_client.h" | 12 #include "cc/surfaces/surface_factory_client.h" |
12 #include "content/browser/compositor/image_transport_factory.h" | 13 #include "content/browser/compositor/image_transport_factory.h" |
13 #include "content/browser/compositor/owned_mailbox.h" | 14 #include "content/browser/compositor/owned_mailbox.h" |
14 #include "content/browser/renderer_host/delegated_frame_evictor.h" | 15 #include "content/browser/renderer_host/delegated_frame_evictor.h" |
15 #include "content/browser/renderer_host/dip_util.h" | 16 #include "content/browser/renderer_host/dip_util.h" |
16 #include "content/browser/renderer_host/render_widget_host_impl.h" | 17 #include "content/browser/renderer_host/render_widget_host_impl.h" |
17 #include "content/browser/renderer_host/render_widget_host_view_base.h" | 18 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 class CONTENT_EXPORT DelegatedFrameHost | 79 class CONTENT_EXPORT DelegatedFrameHost |
79 : public ui::CompositorObserver, | 80 : public ui::CompositorObserver, |
80 public ui::CompositorVSyncManager::Observer, | 81 public ui::CompositorVSyncManager::Observer, |
81 public ui::LayerOwnerDelegate, | 82 public ui::LayerOwnerDelegate, |
82 public ImageTransportFactoryObserver, | 83 public ImageTransportFactoryObserver, |
83 public DelegatedFrameEvictorClient, | 84 public DelegatedFrameEvictorClient, |
84 public cc::DelegatedFrameResourceCollectionClient, | 85 public cc::DelegatedFrameResourceCollectionClient, |
85 public cc::SurfaceFactoryClient, | 86 public cc::SurfaceFactoryClient, |
86 public base::SupportsWeakPtr<DelegatedFrameHost> { | 87 public base::SupportsWeakPtr<DelegatedFrameHost> { |
87 public: | 88 public: |
88 DelegatedFrameHost(DelegatedFrameHostClient* client); | 89 explicit DelegatedFrameHost(DelegatedFrameHostClient* client); |
89 ~DelegatedFrameHost() override; | 90 ~DelegatedFrameHost() override; |
90 | 91 |
91 // ui::CompositorObserver implementation. | 92 // ui::CompositorObserver implementation. |
92 void OnCompositingDidCommit(ui::Compositor* compositor) override; | 93 void OnCompositingDidCommit(ui::Compositor* compositor) override; |
93 void OnCompositingStarted(ui::Compositor* compositor, | 94 void OnCompositingStarted(ui::Compositor* compositor, |
94 base::TimeTicks start_time) override; | 95 base::TimeTicks start_time) override; |
95 void OnCompositingEnded(ui::Compositor* compositor) override; | 96 void OnCompositingEnded(ui::Compositor* compositor) override; |
96 void OnCompositingAborted(ui::Compositor* compositor) override; | 97 void OnCompositingAborted(ui::Compositor* compositor) override; |
97 void OnCompositingLockStateChanged(ui::Compositor* compositor) override; | 98 void OnCompositingLockStateChanged(ui::Compositor* compositor) override; |
98 void OnCompositingShuttingDown(ui::Compositor* compositor) override; | 99 void OnCompositingShuttingDown(ui::Compositor* compositor) override; |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 // YUV readback pipeline. | 337 // YUV readback pipeline. |
337 scoped_ptr<content::ReadbackYUVInterface> | 338 scoped_ptr<content::ReadbackYUVInterface> |
338 yuv_readback_pipeline_; | 339 yuv_readback_pipeline_; |
339 | 340 |
340 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; | 341 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; |
341 }; | 342 }; |
342 | 343 |
343 } // namespace content | 344 } // namespace content |
344 | 345 |
345 #endif // CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ | 346 #endif // CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ |
OLD | NEW |