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

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: Added plumbing for returning resources 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
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..b525d4ebf914a0ce47ac1d1846a109c29aeda353 100644
--- a/components/html_viewer/web_layer_tree_view_impl.h
+++ b/components/html_viewer/web_layer_tree_view_impl.h
@@ -12,7 +12,7 @@
#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 "components/view_manager/public/interfaces/view_manager.mojom.h"
#include "mojo/cc/output_surface_mojo.h"
#include "third_party/WebKit/public/platform/WebLayerTreeView.h"
@@ -40,14 +40,13 @@ 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::CompositorFrameReceiverPtr receiver,
mojo::GpuPtr gpu_service);
~WebLayerTreeViewImpl() override;
@@ -118,12 +117,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_;

Powered by Google App Engine
This is Rietveld 408576698