OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_COMPOSITOR_IMPL_ANDROID_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "content/common/content_export.h" |
11 #include "content/public/browser/android/compositor.h" | 12 #include "content/public/browser/android/compositor.h" |
12 #include "third_party/WebKit/Source/Platform/chromium/public/WebLayer.h" | 13 #include "third_party/WebKit/Source/Platform/chromium/public/WebLayer.h" |
13 #include "third_party/WebKit/Source/Platform/chromium/public/WebLayerTreeView.h" | 14 #include "third_party/WebKit/Source/Platform/chromium/public/WebLayerTreeView.h" |
14 #include "third_party/WebKit/Source/Platform/chromium/public/WebLayerTreeViewCli
ent.h" | 15 #include "third_party/WebKit/Source/Platform/chromium/public/WebLayerTreeViewCli
ent.h" |
15 | 16 |
16 struct ANativeWindow; | 17 struct ANativeWindow; |
17 | 18 |
18 namespace content { | 19 namespace content { |
19 class GraphicsContext; | 20 class GraphicsContext; |
20 | 21 |
21 // ----------------------------------------------------------------------------- | 22 // ----------------------------------------------------------------------------- |
22 // Browser-side compositor that manages a tree of content and UI layers. | 23 // Browser-side compositor that manages a tree of content and UI layers. |
23 // ----------------------------------------------------------------------------- | 24 // ----------------------------------------------------------------------------- |
24 class CompositorImpl : public Compositor, | 25 class CONTENT_EXPORT CompositorImpl : public Compositor, |
25 public WebKit::WebLayerTreeViewClient { | 26 public WebKit::WebLayerTreeViewClient { |
26 public: | 27 public: |
27 explicit CompositorImpl(Compositor::Client* client); | 28 explicit CompositorImpl(Compositor::Client* client); |
28 virtual ~CompositorImpl(); | 29 virtual ~CompositorImpl(); |
29 | 30 |
30 static bool IsInitialized(); | 31 static bool IsInitialized(); |
31 | 32 |
32 // Compositor implementation. | 33 // Compositor implementation. |
33 virtual void SetRootLayer(WebKit::WebLayer* root) OVERRIDE; | 34 virtual void SetRootLayer(WebKit::WebLayer* root) OVERRIDE; |
34 virtual void SetWindowSurface(ANativeWindow* window) OVERRIDE; | 35 virtual void SetWindowSurface(ANativeWindow* window) OVERRIDE; |
35 virtual void SetWindowBounds(const gfx::Size& size) OVERRIDE; | 36 virtual void SetWindowBounds(const gfx::Size& size) OVERRIDE; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 int surface_id_; | 70 int surface_id_; |
70 | 71 |
71 Compositor::Client* client_; | 72 Compositor::Client* client_; |
72 | 73 |
73 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); | 74 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); |
74 }; | 75 }; |
75 | 76 |
76 } // namespace content | 77 } // namespace content |
77 | 78 |
78 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ | 79 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ |
OLD | NEW |