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 28 matching lines...) Expand all Loading... |
39 class ResizeLock; | 39 class ResizeLock; |
40 | 40 |
41 // The DelegatedFrameHostClient is the interface from the DelegatedFrameHost, | 41 // The DelegatedFrameHostClient is the interface from the DelegatedFrameHost, |
42 // which manages delegated frames, and the ui::Compositor being used to | 42 // which manages delegated frames, and the ui::Compositor being used to |
43 // display them. | 43 // display them. |
44 class CONTENT_EXPORT DelegatedFrameHostClient { | 44 class CONTENT_EXPORT DelegatedFrameHostClient { |
45 public: | 45 public: |
46 virtual ui::Compositor* GetCompositor() const = 0; | 46 virtual ui::Compositor* GetCompositor() const = 0; |
47 virtual ui::Layer* GetLayer() = 0; | 47 virtual ui::Layer* GetLayer() = 0; |
48 virtual RenderWidgetHostImpl* GetHost() = 0; | 48 virtual RenderWidgetHostImpl* GetHost() = 0; |
49 virtual void SchedulePaintInRect(const gfx::Rect& damage_rect_in_dip) = 0; | 49 virtual void NotifyDamage(const gfx::Rect& damage_rect_in_dip) = 0; |
50 virtual bool IsVisible() = 0; | 50 virtual bool IsVisible() = 0; |
51 virtual scoped_ptr<ResizeLock> CreateResizeLock( | 51 virtual scoped_ptr<ResizeLock> CreateResizeLock( |
52 bool defer_compositor_lock) = 0; | 52 bool defer_compositor_lock) = 0; |
53 virtual gfx::Size DesiredFrameSize() = 0; | 53 virtual gfx::Size DesiredFrameSize() = 0; |
54 | 54 |
55 // TODO(ccameron): It is likely that at least one of these two functions is | 55 // TODO(ccameron): It is likely that at least one of these two functions is |
56 // redundant. Find which one, and delete it. | 56 // redundant. Find which one, and delete it. |
57 virtual float CurrentDeviceScaleFactor() = 0; | 57 virtual float CurrentDeviceScaleFactor() = 0; |
58 virtual gfx::Size ConvertViewSizeToPixel(const gfx::Size& size) = 0; | 58 virtual gfx::Size ConvertViewSizeToPixel(const gfx::Size& size) = 0; |
59 | 59 |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 // YUV readback pipeline. | 307 // YUV readback pipeline. |
308 scoped_ptr<content::ReadbackYUVInterface> | 308 scoped_ptr<content::ReadbackYUVInterface> |
309 yuv_readback_pipeline_; | 309 yuv_readback_pipeline_; |
310 | 310 |
311 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; | 311 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; |
312 }; | 312 }; |
313 | 313 |
314 } // namespace content | 314 } // namespace content |
315 | 315 |
316 #endif // CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ | 316 #endif // CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ |
OLD | NEW |