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 "cc/layers/delegated_frame_provider.h" | 8 #include "cc/layers/delegated_frame_provider.h" |
9 #include "cc/layers/delegated_frame_resource_collection.h" | 9 #include "cc/layers/delegated_frame_resource_collection.h" |
10 #include "cc/output/copy_output_result.h" | 10 #include "cc/output/copy_output_result.h" |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 public ui::CompositorVSyncManager::Observer, | 70 public ui::CompositorVSyncManager::Observer, |
71 public ui::LayerOwnerDelegate, | 71 public ui::LayerOwnerDelegate, |
72 public ImageTransportFactoryObserver, | 72 public ImageTransportFactoryObserver, |
73 public DelegatedFrameEvictorClient, | 73 public DelegatedFrameEvictorClient, |
74 public cc::DelegatedFrameResourceCollectionClient, | 74 public cc::DelegatedFrameResourceCollectionClient, |
75 public base::SupportsWeakPtr<DelegatedFrameHost> { | 75 public base::SupportsWeakPtr<DelegatedFrameHost> { |
76 public: | 76 public: |
77 DelegatedFrameHost(DelegatedFrameHostClient* client); | 77 DelegatedFrameHost(DelegatedFrameHostClient* client); |
78 virtual ~DelegatedFrameHost(); | 78 virtual ~DelegatedFrameHost(); |
79 | 79 |
80 gfx::Rect GetViewBoundsWithResizeLock(const gfx::Rect& bounds) const; | |
81 bool CanCopyToBitmap() const; | 80 bool CanCopyToBitmap() const; |
82 | 81 |
83 // Public interface exposed to RenderWidgetHostView. | 82 // Public interface exposed to RenderWidgetHostView. |
84 void SwapDelegatedFrame( | 83 void SwapDelegatedFrame( |
85 uint32 output_surface_id, | 84 uint32 output_surface_id, |
86 scoped_ptr<cc::DelegatedFrameData> frame_data, | 85 scoped_ptr<cc::DelegatedFrameData> frame_data, |
87 float frame_device_scale_factor, | 86 float frame_device_scale_factor, |
88 const std::vector<ui::LatencyInfo>& latency_info); | 87 const std::vector<ui::LatencyInfo>& latency_info); |
89 void WasHidden(); | 88 void WasHidden(); |
90 void WasShown(); | 89 void WasShown(); |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 // YUV readback pipeline. | 277 // YUV readback pipeline. |
279 scoped_ptr<content::ReadbackYUVInterface> | 278 scoped_ptr<content::ReadbackYUVInterface> |
280 yuv_readback_pipeline_; | 279 yuv_readback_pipeline_; |
281 | 280 |
282 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; | 281 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; |
283 }; | 282 }; |
284 | 283 |
285 } // namespace content | 284 } // namespace content |
286 | 285 |
287 #endif // CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ | 286 #endif // CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ |
OLD | NEW |