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_BROWSER_COMPOSITOR_VIEW_MAC_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_BROWSER_COMPOSITOR_VIEW_MAC_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_COMPOSITOR_VIEW_MAC_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_COMPOSITOR_VIEW_MAC_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
55 ~BrowserCompositorMac() override; | 55 ~BrowserCompositorMac() override; |
56 | 56 |
57 // These will not return nullptr until Destroy is called. | 57 // These will not return nullptr until Destroy is called. |
58 DelegatedFrameHost* GetDelegatedFrameHost(); | 58 DelegatedFrameHost* GetDelegatedFrameHost(); |
59 | 59 |
60 // This may return nullptr, if this has detached itself from its | 60 // This may return nullptr, if this has detached itself from its |
61 // ui::Compositor. | 61 // ui::Compositor. |
62 ui::AcceleratedWidgetMac* GetAcceleratedWidgetMac(); | 62 ui::AcceleratedWidgetMac* GetAcceleratedWidgetMac(); |
63 | 63 |
64 void SwapCompositorFrame(uint32_t compositor_frame_sink_id, | 64 void SwapCompositorFrame(uint32_t compositor_frame_sink_id, |
65 cc::LocalSurfaceId local_surface_id, | |
Fady Samuel
2017/03/15 12:05:47
const cc::LocalSurfaceId&
Saman Sami
2017/03/16 18:33:07
Done.
| |
65 cc::CompositorFrame frame); | 66 cc::CompositorFrame frame); |
66 void SetHasTransparentBackground(bool transparent); | 67 void SetHasTransparentBackground(bool transparent); |
67 void SetDisplayColorProfile(const gfx::ICCProfile& icc_profile); | 68 void SetDisplayColorProfile(const gfx::ICCProfile& icc_profile); |
68 void UpdateVSyncParameters(const base::TimeTicks& timebase, | 69 void UpdateVSyncParameters(const base::TimeTicks& timebase, |
69 const base::TimeDelta& interval); | 70 const base::TimeDelta& interval); |
70 void SetNeedsBeginFrames(bool needs_begin_frames); | 71 void SetNeedsBeginFrames(bool needs_begin_frames); |
71 | 72 |
72 // This is used to ensure that the ui::Compositor be attached to the | 73 // This is used to ensure that the ui::Compositor be attached to the |
73 // DelegatedFrameHost while the RWHImpl is visible. | 74 // DelegatedFrameHost while the RWHImpl is visible. |
74 // Note: This should be called before the RWHImpl is made visible and after | 75 // Note: This should be called before the RWHImpl is made visible and after |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
181 cc::BeginFrameSource* begin_frame_source_ = nullptr; | 182 cc::BeginFrameSource* begin_frame_source_ = nullptr; |
182 cc::BeginFrameArgs last_begin_frame_args_; | 183 cc::BeginFrameArgs last_begin_frame_args_; |
183 bool needs_begin_frames_ = false; | 184 bool needs_begin_frames_ = false; |
184 | 185 |
185 base::WeakPtrFactory<BrowserCompositorMac> weak_factory_; | 186 base::WeakPtrFactory<BrowserCompositorMac> weak_factory_; |
186 }; | 187 }; |
187 | 188 |
188 } // namespace content | 189 } // namespace content |
189 | 190 |
190 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_COMPOSITOR_VIEW_MAC_H_ | 191 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_COMPOSITOR_VIEW_MAC_H_ |
OLD | NEW |