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

Side by Side Diff: components/html_viewer/web_layer_tree_view_impl.h

Issue 1189833005: Revert of Support impl-side painting in Mandoline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « components/html_viewer/setup.h ('k') | components/html_viewer/web_layer_tree_view_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 COMPONENTS_HTML_VIEWER_WEB_LAYER_TREE_VIEW_IMPL_H_ 5 #ifndef COMPONENTS_HTML_VIEWER_WEB_LAYER_TREE_VIEW_IMPL_H_
6 #define COMPONENTS_HTML_VIEWER_WEB_LAYER_TREE_VIEW_IMPL_H_ 6 #define COMPONENTS_HTML_VIEWER_WEB_LAYER_TREE_VIEW_IMPL_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "base/single_thread_task_runner.h" 12 #include "base/single_thread_task_runner.h"
13 #include "cc/trees/layer_tree_host_client.h" 13 #include "cc/trees/layer_tree_host_client.h"
14 #include "components/view_manager/public/interfaces/gpu.mojom.h" 14 #include "components/view_manager/public/interfaces/gpu.mojom.h"
15 #include "components/view_manager/public/interfaces/surfaces.mojom.h" 15 #include "components/view_manager/public/interfaces/surfaces.mojom.h"
16 #include "mojo/cc/output_surface_mojo.h" 16 #include "mojo/cc/output_surface_mojo.h"
17 #include "third_party/WebKit/public/platform/WebLayerTreeView.h" 17 #include "third_party/WebKit/public/platform/WebLayerTreeView.h"
18 18
19 namespace base { 19 namespace base {
20 class SingleThreadTaskRunner; 20 class SingleThreadTaskRunner;
21 } 21 }
22 22
23 namespace blink { 23 namespace blink {
24 class WebWidget; 24 class WebWidget;
25 } 25 }
26 26
27 namespace cc { 27 namespace cc {
28 class LayerTreeHost; 28 class LayerTreeHost;
29 class TaskGraphRunner;
30 }
31
32 namespace gpu {
33 class GpuMemoryBufferManager;
34 } 29 }
35 30
36 namespace mojo { 31 namespace mojo {
37 class View; 32 class View;
38 } 33 }
39 34
40 namespace html_viewer { 35 namespace html_viewer {
41 36
42 class WebLayerTreeViewImpl : public blink::WebLayerTreeView, 37 class WebLayerTreeViewImpl : public blink::WebLayerTreeView,
43 public cc::LayerTreeHostClient, 38 public cc::LayerTreeHostClient,
44 public mojo::OutputSurfaceMojoClient { 39 public mojo::OutputSurfaceMojoClient {
45 public: 40 public:
46 WebLayerTreeViewImpl( 41 WebLayerTreeViewImpl(
47 scoped_refptr<base::SingleThreadTaskRunner> compositor_task_runner, 42 scoped_refptr<base::SingleThreadTaskRunner> compositor_task_runner,
48 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager,
49 cc::TaskGraphRunner* task_graph_runner,
50 mojo::SurfacePtr surface, 43 mojo::SurfacePtr surface,
51 mojo::GpuPtr gpu_service); 44 mojo::GpuPtr gpu_service);
52 ~WebLayerTreeViewImpl() override; 45 ~WebLayerTreeViewImpl() override;
53 46
54 void set_widget(blink::WebWidget* widget) { widget_ = widget; } 47 void set_widget(blink::WebWidget* widget) { widget_ = widget; }
55 void set_view(mojo::View* view) { view_ = view; } 48 void set_view(mojo::View* view) { view_ = view; }
56 49
57 // cc::LayerTreeHostClient implementation. 50 // cc::LayerTreeHostClient implementation.
58 void WillBeginMainFrame() override; 51 void WillBeginMainFrame() override;
59 void DidBeginMainFrame() override; 52 void DidBeginMainFrame() override;
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 main_thread_compositor_task_runner_; 127 main_thread_compositor_task_runner_;
135 base::WeakPtr<WebLayerTreeViewImpl> main_thread_bound_weak_ptr_; 128 base::WeakPtr<WebLayerTreeViewImpl> main_thread_bound_weak_ptr_;
136 129
137 base::WeakPtrFactory<WebLayerTreeViewImpl> weak_factory_; 130 base::WeakPtrFactory<WebLayerTreeViewImpl> weak_factory_;
138 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImpl); 131 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImpl);
139 }; 132 };
140 133
141 } // namespace html_viewer 134 } // namespace html_viewer
142 135
143 #endif // COMPONENTS_HTML_VIEWER_WEB_LAYER_TREE_VIEW_IMPL_H_ 136 #endif // COMPONENTS_HTML_VIEWER_WEB_LAYER_TREE_VIEW_IMPL_H_
OLDNEW
« no previous file with comments | « components/html_viewer/setup.h ('k') | components/html_viewer/web_layer_tree_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698