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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 class DelegatedFrameHost; | 49 class DelegatedFrameHost; |
50 class RenderWidgetHostViewFrameSubscriber; | 50 class RenderWidgetHostViewFrameSubscriber; |
51 class RenderWidgetHostImpl; | 51 class RenderWidgetHostImpl; |
52 class ResizeLock; | 52 class ResizeLock; |
53 | 53 |
54 // The DelegatedFrameHostClient is the interface from the DelegatedFrameHost, | 54 // The DelegatedFrameHostClient is the interface from the DelegatedFrameHost, |
55 // which manages delegated frames, and the ui::Compositor being used to | 55 // which manages delegated frames, and the ui::Compositor being used to |
56 // display them. | 56 // display them. |
57 class CONTENT_EXPORT DelegatedFrameHostClient { | 57 class CONTENT_EXPORT DelegatedFrameHostClient { |
58 public: | 58 public: |
59 virtual int DelegatedFrameHostGetGpuMemoryBufferClientId() const = 0; | |
60 virtual ui::Layer* DelegatedFrameHostGetLayer() const = 0; | 59 virtual ui::Layer* DelegatedFrameHostGetLayer() const = 0; |
61 virtual bool DelegatedFrameHostIsVisible() const = 0; | 60 virtual bool DelegatedFrameHostIsVisible() const = 0; |
62 | 61 |
63 // Returns the color that the resize gutters should be drawn with. Takes the | 62 // Returns the color that the resize gutters should be drawn with. Takes the |
64 // suggested color from the current page background. | 63 // suggested color from the current page background. |
65 virtual SkColor DelegatedFrameHostGetGutterColor(SkColor color) const = 0; | 64 virtual SkColor DelegatedFrameHostGetGutterColor(SkColor color) const = 0; |
66 virtual gfx::Size DelegatedFrameHostDesiredSizeInDIP() const = 0; | 65 virtual gfx::Size DelegatedFrameHostDesiredSizeInDIP() const = 0; |
67 | 66 |
68 virtual bool DelegatedFrameCanCreateResizeLock() const = 0; | 67 virtual bool DelegatedFrameCanCreateResizeLock() const = 0; |
69 virtual std::unique_ptr<ResizeLock> DelegatedFrameHostCreateResizeLock( | 68 virtual std::unique_ptr<ResizeLock> DelegatedFrameHostCreateResizeLock( |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 // YUV readback pipeline. | 327 // YUV readback pipeline. |
329 std::unique_ptr<display_compositor::ReadbackYUVInterface> | 328 std::unique_ptr<display_compositor::ReadbackYUVInterface> |
330 yuv_readback_pipeline_; | 329 yuv_readback_pipeline_; |
331 | 330 |
332 std::unique_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; | 331 std::unique_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; |
333 }; | 332 }; |
334 | 333 |
335 } // namespace content | 334 } // namespace content |
336 | 335 |
337 #endif // CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ | 336 #endif // CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ |
OLD | NEW |