Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Side by Side Diff: content/browser/renderer_host/browser_compositor_view_mac.h

Issue 2018793002: Mac: Move remote layer use to GpuOutputSurfaceMac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clean_up_mac
Patch Set: Review feedback Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
11 #include "ui/accelerated_widget_mac/accelerated_widget_mac.h"
12 #include "ui/compositor/compositor.h" 11 #include "ui/compositor/compositor.h"
13 #include "ui/compositor/compositor_observer.h" 12 #include "ui/compositor/compositor_observer.h"
14 13
14 namespace ui {
15 class AcceleratedWidgetMac;
16 }
17
15 namespace content { 18 namespace content {
16 19
17 // A ui::Compositor and a gfx::AcceleratedWidget (and helper) that it draws 20 // A ui::Compositor and a gfx::AcceleratedWidget (and helper) that it draws
18 // into. This structure is used to efficiently recycle these structures across 21 // into. This structure is used to efficiently recycle these structures across
19 // tabs (because creating a new ui::Compositor for each tab would be expensive 22 // tabs (because creating a new ui::Compositor for each tab would be expensive
20 // in terms of time and resources). 23 // in terms of time and resources).
21 class BrowserCompositorMac : public ui::CompositorObserver { 24 class BrowserCompositorMac : public ui::CompositorObserver {
22 public: 25 public:
23 virtual ~BrowserCompositorMac(); 26 virtual ~BrowserCompositorMac();
24 27
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 BrowserCompositorMacPlaceholder(); 74 BrowserCompositorMacPlaceholder();
72 ~BrowserCompositorMacPlaceholder(); 75 ~BrowserCompositorMacPlaceholder();
73 76
74 private: 77 private:
75 DISALLOW_COPY_AND_ASSIGN(BrowserCompositorMacPlaceholder); 78 DISALLOW_COPY_AND_ASSIGN(BrowserCompositorMacPlaceholder);
76 }; 79 };
77 80
78 } // namespace content 81 } // namespace content
79 82
80 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_COMPOSITOR_VIEW_MAC_H_ 83 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_COMPOSITOR_VIEW_MAC_H_
OLDNEW
« no previous file with comments | « content/browser/compositor/software_output_device_mac.mm ('k') | ui/accelerated_widget_mac/accelerated_widget_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698