| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 DelegatedFrameHost* GetDelegatedFrameHost(); | 53 DelegatedFrameHost* GetDelegatedFrameHost(); |
| 54 | 54 |
| 55 // This may return nullptr, if this has detached itself from its | 55 // This may return nullptr, if this has detached itself from its |
| 56 // ui::Compositor. | 56 // ui::Compositor. |
| 57 ui::AcceleratedWidgetMac* GetAcceleratedWidgetMac(); | 57 ui::AcceleratedWidgetMac* GetAcceleratedWidgetMac(); |
| 58 | 58 |
| 59 void DidCreateNewRendererCompositorFrameSink( | 59 void DidCreateNewRendererCompositorFrameSink( |
| 60 cc::mojom::MojoCompositorFrameSinkClient* renderer_compositor_frame_sink); | 60 cc::mojom::MojoCompositorFrameSinkClient* renderer_compositor_frame_sink); |
| 61 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id, | 61 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id, |
| 62 cc::CompositorFrame frame); | 62 cc::CompositorFrame frame); |
| 63 void OnBeginFrameDidNotSwap(const cc::BeginFrameAck& ack); | 63 void OnBeginFrameDidNotProduceFrame(const cc::BeginFrameAck& ack); |
| 64 void SetHasTransparentBackground(bool transparent); | 64 void SetHasTransparentBackground(bool transparent); |
| 65 void SetDisplayColorProfile(const gfx::ICCProfile& icc_profile); | 65 void SetDisplayColorProfile(const gfx::ICCProfile& icc_profile); |
| 66 void UpdateVSyncParameters(const base::TimeTicks& timebase, | 66 void UpdateVSyncParameters(const base::TimeTicks& timebase, |
| 67 const base::TimeDelta& interval); | 67 const base::TimeDelta& interval); |
| 68 void SetNeedsBeginFrames(bool needs_begin_frames); | 68 void SetNeedsBeginFrames(bool needs_begin_frames); |
| 69 | 69 |
| 70 // This is used to ensure that the ui::Compositor be attached to the | 70 // This is used to ensure that the ui::Compositor be attached to the |
| 71 // DelegatedFrameHost while the RWHImpl is visible. | 71 // DelegatedFrameHost while the RWHImpl is visible. |
| 72 // Note: This should be called before the RWHImpl is made visible and after | 72 // Note: This should be called before the RWHImpl is made visible and after |
| 73 // it has been hidden, in order to ensure that thumbnailer notifications to | 73 // it has been hidden, in order to ensure that thumbnailer notifications to |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 bool has_transparent_background_ = false; | 166 bool has_transparent_background_ = false; |
| 167 cc::mojom::MojoCompositorFrameSinkClient* renderer_compositor_frame_sink_ = | 167 cc::mojom::MojoCompositorFrameSinkClient* renderer_compositor_frame_sink_ = |
| 168 nullptr; | 168 nullptr; |
| 169 | 169 |
| 170 base::WeakPtrFactory<BrowserCompositorMac> weak_factory_; | 170 base::WeakPtrFactory<BrowserCompositorMac> weak_factory_; |
| 171 }; | 171 }; |
| 172 | 172 |
| 173 } // namespace content | 173 } // namespace content |
| 174 | 174 |
| 175 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_COMPOSITOR_VIEW_MAC_H_ | 175 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_COMPOSITOR_VIEW_MAC_H_ |
| OLD | NEW |