| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 // Indicate that the recyclable compositor should be destroyed, and no future | 97 // Indicate that the recyclable compositor should be destroyed, and no future |
| 98 // compositors should be recycled. | 98 // compositors should be recycled. |
| 99 static void DisableRecyclingForShutdown(); | 99 static void DisableRecyclingForShutdown(); |
| 100 | 100 |
| 101 // DelegatedFrameHostClient implementation. | 101 // DelegatedFrameHostClient implementation. |
| 102 ui::Layer* DelegatedFrameHostGetLayer() const override; | 102 ui::Layer* DelegatedFrameHostGetLayer() const override; |
| 103 bool DelegatedFrameHostIsVisible() const override; | 103 bool DelegatedFrameHostIsVisible() const override; |
| 104 SkColor DelegatedFrameHostGetGutterColor(SkColor color) const override; | 104 SkColor DelegatedFrameHostGetGutterColor(SkColor color) const override; |
| 105 gfx::Size DelegatedFrameHostDesiredSizeInDIP() const override; | 105 gfx::Size DelegatedFrameHostDesiredSizeInDIP() const override; |
| 106 bool DelegatedFrameCanCreateResizeLock() const override; | 106 bool DelegatedFrameCanCreateResizeLock() const override; |
| 107 std::unique_ptr<ResizeLock> DelegatedFrameHostCreateResizeLock( | 107 std::unique_ptr<CompositorResizeLock> DelegatedFrameHostCreateResizeLock() |
| 108 bool defer_compositor_lock) override; | 108 override; |
| 109 void DelegatedFrameHostResizeLockWasReleased() override; | 109 void DelegatedFrameHostResizeLockWasReleased() override; |
| 110 void DelegatedFrameHostSendReclaimCompositorResources( | 110 void DelegatedFrameHostSendReclaimCompositorResources( |
| 111 int compositor_frame_sink_id, | 111 int compositor_frame_sink_id, |
| 112 bool is_swap_ack, | 112 bool is_swap_ack, |
| 113 const cc::ReturnedResourceArray& resources) override; | 113 const cc::ReturnedResourceArray& resources) override; |
| 114 void OnBeginFrame(const cc::BeginFrameArgs& args) override; | 114 void OnBeginFrame(const cc::BeginFrameArgs& args) override; |
| 115 bool IsAutoResizeEnabled() const override; | 115 bool IsAutoResizeEnabled() const override; |
| 116 | 116 |
| 117 private: | 117 private: |
| 118 // The state of |delegated_frame_host_| and |recyclable_compositor_| to | 118 // The state of |delegated_frame_host_| and |recyclable_compositor_| to |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 std::unique_ptr<ui::Layer> root_layer_; | 172 std::unique_ptr<ui::Layer> root_layer_; |
| 173 | 173 |
| 174 bool has_transparent_background_ = false; | 174 bool has_transparent_background_ = false; |
| 175 | 175 |
| 176 base::WeakPtrFactory<BrowserCompositorMac> weak_factory_; | 176 base::WeakPtrFactory<BrowserCompositorMac> weak_factory_; |
| 177 }; | 177 }; |
| 178 | 178 |
| 179 } // namespace content | 179 } // namespace content |
| 180 | 180 |
| 181 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_COMPOSITOR_VIEW_MAC_H_ | 181 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_COMPOSITOR_VIEW_MAC_H_ |
| OLD | NEW |