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 "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" |
9 #include "ui/accelerated_widget_mac/accelerated_widget_mac.h" | 10 #include "ui/accelerated_widget_mac/accelerated_widget_mac.h" |
10 #include "ui/compositor/compositor.h" | 11 #include "ui/compositor/compositor.h" |
11 #include "ui/compositor/compositor_observer.h" | 12 #include "ui/compositor/compositor_observer.h" |
12 | 13 |
13 namespace content { | 14 namespace content { |
14 | 15 |
15 // A ui::Compositor and a gfx::AcceleratedWidget (and helper) that it draws | 16 // A ui::Compositor and a gfx::AcceleratedWidget (and helper) that it draws |
16 // into. This structure is used to efficiently recycle these structures across | 17 // into. This structure is used to efficiently recycle these structures across |
17 // tabs (because creating a new ui::Compositor for each tab would be expensive | 18 // tabs (because creating a new ui::Compositor for each tab would be expensive |
18 // in terms of time and resources). | 19 // in terms of time and resources). |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 BrowserCompositorMacPlaceholder(); | 70 BrowserCompositorMacPlaceholder(); |
70 ~BrowserCompositorMacPlaceholder(); | 71 ~BrowserCompositorMacPlaceholder(); |
71 | 72 |
72 private: | 73 private: |
73 DISALLOW_COPY_AND_ASSIGN(BrowserCompositorMacPlaceholder); | 74 DISALLOW_COPY_AND_ASSIGN(BrowserCompositorMacPlaceholder); |
74 }; | 75 }; |
75 | 76 |
76 } // namespace content | 77 } // namespace content |
77 | 78 |
78 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_COMPOSITOR_VIEW_MAC_H_ | 79 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_COMPOSITOR_VIEW_MAC_H_ |
OLD | NEW |