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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 static void DisableRecyclingForShutdown(); | 98 static void DisableRecyclingForShutdown(); |
99 | 99 |
100 // DelegatedFrameHostClient implementation. | 100 // DelegatedFrameHostClient implementation. |
101 ui::Layer* DelegatedFrameHostGetLayer() const override; | 101 ui::Layer* DelegatedFrameHostGetLayer() const override; |
102 bool DelegatedFrameHostIsVisible() const override; | 102 bool DelegatedFrameHostIsVisible() const override; |
103 SkColor DelegatedFrameHostGetGutterColor(SkColor color) const override; | 103 SkColor DelegatedFrameHostGetGutterColor(SkColor color) const override; |
104 gfx::Size DelegatedFrameHostDesiredSizeInDIP() const override; | 104 gfx::Size DelegatedFrameHostDesiredSizeInDIP() const override; |
105 bool DelegatedFrameCanCreateResizeLock() const override; | 105 bool DelegatedFrameCanCreateResizeLock() const override; |
106 std::unique_ptr<CompositorResizeLock> DelegatedFrameHostCreateResizeLock() | 106 std::unique_ptr<CompositorResizeLock> DelegatedFrameHostCreateResizeLock() |
107 override; | 107 override; |
108 void DelegatedFrameHostResizeLockWasReleased() override; | |
109 void DelegatedFrameHostSendReclaimCompositorResources( | 108 void DelegatedFrameHostSendReclaimCompositorResources( |
110 bool is_swap_ack, | 109 bool is_swap_ack, |
111 const cc::ReturnedResourceArray& resources) override; | 110 const cc::ReturnedResourceArray& resources) override; |
112 void OnBeginFrame(const cc::BeginFrameArgs& args) override; | 111 void OnBeginFrame(const cc::BeginFrameArgs& args) override; |
113 bool IsAutoResizeEnabled() const override; | 112 bool IsAutoResizeEnabled() const override; |
114 | 113 |
115 private: | 114 private: |
116 // The state of |delegated_frame_host_| and |recyclable_compositor_| to | 115 // The state of |delegated_frame_host_| and |recyclable_compositor_| to |
117 // manage being visible, hidden, or occluded. | 116 // manage being visible, hidden, or occluded. |
118 enum State { | 117 enum State { |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 std::unique_ptr<ui::Layer> root_layer_; | 169 std::unique_ptr<ui::Layer> root_layer_; |
171 | 170 |
172 bool has_transparent_background_ = false; | 171 bool has_transparent_background_ = false; |
173 | 172 |
174 base::WeakPtrFactory<BrowserCompositorMac> weak_factory_; | 173 base::WeakPtrFactory<BrowserCompositorMac> weak_factory_; |
175 }; | 174 }; |
176 | 175 |
177 } // namespace content | 176 } // namespace content |
178 | 177 |
179 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_COMPOSITOR_VIEW_MAC_H_ | 178 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_COMPOSITOR_VIEW_MAC_H_ |
OLD | NEW |