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

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

Issue 753933002: MacViews: Move content::AcceleratedWidget to new component, ui/accelerated_widget_mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@20141124-MacViews-MoveSoftwareLayerMac-fromcl
Patch Set: nit DEPS, deps and gn Created 6 years 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_COMPOSITOR_BROWSER_COMPOSITOR_VIEW_MAC_H_ 5 #ifndef CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_VIEW_MAC_H_
6 #define CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_VIEW_MAC_H_ 6 #define CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_VIEW_MAC_H_
7 7
8 #include "content/browser/compositor/browser_compositor_ca_layer_tree_mac.h"
9 #include "ui/compositor/compositor.h" 8 #include "ui/compositor/compositor.h"
9 #include "ui/compositor/mac/accelerated_widget_mac.h"
10 10
11 namespace content { 11 namespace content {
12 12
13 // A ui::Compositor and a gfx::AcceleratedWidget (and helper) that it draws 13 // A ui::Compositor and a gfx::AcceleratedWidget (and helper) that it draws
14 // into. This structure is used to efficiently recycle these structures across 14 // into. This structure is used to efficiently recycle these structures across
15 // tabs (because creating a new ui::Compositor for each tab would be expensive 15 // tabs (because creating a new ui::Compositor for each tab would be expensive
16 // in terms of time and resources). 16 // in terms of time and resources).
17 class BrowserCompositorMac { 17 class BrowserCompositorMac {
18 public: 18 public:
19 // Create a compositor, or recycle a preexisting one. 19 // Create a compositor, or recycle a preexisting one.
(...skipping 25 matching lines...) Expand all
45 BrowserCompositorMacPlaceholder(); 45 BrowserCompositorMacPlaceholder();
46 ~BrowserCompositorMacPlaceholder(); 46 ~BrowserCompositorMacPlaceholder();
47 47
48 private: 48 private:
49 DISALLOW_COPY_AND_ASSIGN(BrowserCompositorMacPlaceholder); 49 DISALLOW_COPY_AND_ASSIGN(BrowserCompositorMacPlaceholder);
50 }; 50 };
51 51
52 } // namespace content 52 } // namespace content
53 53
54 #endif // CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_VIEW_MAC_H_ 54 #endif // CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_VIEW_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698