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

Unified Diff: components/html_viewer/web_layer_tree_view_impl.h

Issue 1281663002: Mandoline: Allow submitting CompositorFrames directly to mojo::Views (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/html_viewer/html_widget.cc ('k') | components/html_viewer/web_layer_tree_view_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/html_viewer/web_layer_tree_view_impl.h
diff --git a/components/html_viewer/web_layer_tree_view_impl.h b/components/html_viewer/web_layer_tree_view_impl.h
index 80191e6ef465c598fb4c19052b167bd5e50a4919..fc4d173160527b5a46413c4a3ee51ec9e308bd67 100644
--- a/components/html_viewer/web_layer_tree_view_impl.h
+++ b/components/html_viewer/web_layer_tree_view_impl.h
@@ -12,7 +12,6 @@
#include "base/single_thread_task_runner.h"
#include "cc/trees/layer_tree_host_client.h"
#include "components/view_manager/public/interfaces/gpu.mojom.h"
-#include "components/view_manager/public/interfaces/surfaces.mojom.h"
#include "mojo/cc/output_surface_mojo.h"
#include "third_party/WebKit/public/platform/WebLayerTreeView.h"
@@ -40,19 +39,17 @@ class View;
namespace html_viewer {
class WebLayerTreeViewImpl : public blink::WebLayerTreeView,
- public cc::LayerTreeHostClient,
- public mojo::OutputSurfaceMojoClient {
+ public cc::LayerTreeHostClient {
public:
WebLayerTreeViewImpl(
scoped_refptr<base::SingleThreadTaskRunner> compositor_task_runner,
gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager,
- cc::TaskGraphRunner* task_graph_runner,
- mojo::SurfacePtr surface,
- mojo::GpuPtr gpu_service);
+ cc::TaskGraphRunner* task_graph_runner);
~WebLayerTreeViewImpl() override;
- void set_widget(blink::WebWidget* widget) { widget_ = widget; }
- void set_view(mojo::View* view) { view_ = view; }
+ void Initialize(mojo::GpuPtr gpu_service,
+ mojo::View* view,
+ blink::WebWidget* widget);
// cc::LayerTreeHostClient implementation.
void WillBeginMainFrame() override;
@@ -118,12 +115,7 @@ class WebLayerTreeViewImpl : public blink::WebLayerTreeView,
virtual void setContinuousPaintingEnabled(bool) {}
virtual void setShowScrollBottleneckRects(bool) {}
- // OutputSurfaceMojoClient implementation.
- void DidCreateSurface(cc::SurfaceId id) override;
-
private:
- void DidCreateSurfaceOnMainThread(cc::SurfaceId id);
-
// widget_ and view_ will outlive us.
blink::WebWidget* widget_;
mojo::View* view_;
« no previous file with comments | « components/html_viewer/html_widget.cc ('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