| 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_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 void OnLayerRecreated(ui::Layer* old_layer, ui::Layer* new_layer) override; | 117 void OnLayerRecreated(ui::Layer* old_layer, ui::Layer* new_layer) override; |
| 118 | 118 |
| 119 // ImageTransportFactoryObserver implementation. | 119 // ImageTransportFactoryObserver implementation. |
| 120 void OnLostResources() override; | 120 void OnLostResources() override; |
| 121 | 121 |
| 122 // DelegatedFrameEvictorClient implementation. | 122 // DelegatedFrameEvictorClient implementation. |
| 123 void EvictDelegatedFrame() override; | 123 void EvictDelegatedFrame() override; |
| 124 | 124 |
| 125 // cc::SurfaceFactoryClient implementation. | 125 // cc::SurfaceFactoryClient implementation. |
| 126 void ReturnResources(const cc::ReturnedResourceArray& resources) override; | 126 void ReturnResources(const cc::ReturnedResourceArray& resources) override; |
| 127 void WillDrawSurface(cc::SurfaceId id, const gfx::Rect& damage_rect) override; | 127 void WillDrawSurface(const cc::SurfaceId& id, |
| 128 const gfx::Rect& damage_rect) override; |
| 128 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override; | 129 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override; |
| 129 | 130 |
| 130 bool CanCopyToBitmap() const; | 131 bool CanCopyToBitmap() const; |
| 131 | 132 |
| 132 // Public interface exposed to RenderWidgetHostView. | 133 // Public interface exposed to RenderWidgetHostView. |
| 133 | 134 |
| 134 void SwapDelegatedFrame(uint32_t output_surface_id, | 135 void SwapDelegatedFrame(uint32_t output_surface_id, |
| 135 cc::CompositorFrame frame); | 136 cc::CompositorFrame frame); |
| 136 void ClearDelegatedFrame(); | 137 void ClearDelegatedFrame(); |
| 137 void WasHidden(); | 138 void WasHidden(); |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 // YUV readback pipeline. | 328 // YUV readback pipeline. |
| 328 std::unique_ptr<display_compositor::ReadbackYUVInterface> | 329 std::unique_ptr<display_compositor::ReadbackYUVInterface> |
| 329 yuv_readback_pipeline_; | 330 yuv_readback_pipeline_; |
| 330 | 331 |
| 331 std::unique_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; | 332 std::unique_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; |
| 332 }; | 333 }; |
| 333 | 334 |
| 334 } // namespace content | 335 } // namespace content |
| 335 | 336 |
| 336 #endif // CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ | 337 #endif // CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ |
| OLD | NEW |