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

Unified Diff: mojo/cc/output_surface_mojo.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 a TODO 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: mojo/cc/output_surface_mojo.h
diff --git a/mojo/cc/output_surface_mojo.h b/mojo/cc/output_surface_mojo.h
index e8f8737d6d070764e6269a9d1d60c16f12c6c989..c060a29a526dff0b9fbb0c47f22f44b985f95c93 100644
--- a/mojo/cc/output_surface_mojo.h
+++ b/mojo/cc/output_surface_mojo.h
@@ -8,39 +8,23 @@
#include "base/macros.h"
#include "cc/output/output_surface.h"
#include "cc/surfaces/surface_id.h"
-#include "components/view_manager/public/interfaces/surfaces.mojom.h"
+#include "components/view_manager/public/interfaces/view_manager.mojom.h"
namespace mojo {
-class OutputSurfaceMojoClient {
- public:
- virtual ~OutputSurfaceMojoClient() {}
-
- virtual void DidCreateSurface(cc::SurfaceId id) = 0;
-};
-
class OutputSurfaceMojo : public cc::OutputSurface {
public:
- OutputSurfaceMojo(OutputSurfaceMojoClient* client,
- const scoped_refptr<cc::ContextProvider>& context_provider,
- ScopedMessagePipeHandle surface_handle);
+ OutputSurfaceMojo(const scoped_refptr<cc::ContextProvider>& context_provider,
+ InterfacePtrInfo<CompositorFrameReceiver> receiver_info);
+ ~OutputSurfaceMojo() override;
// cc::OutputSurface implementation.
void SwapBuffers(cc::CompositorFrame* frame) override;
bool BindToClient(cc::OutputSurfaceClient* client) override;
- protected:
- ~OutputSurfaceMojo() override;
-
private:
- void SetIdNamespace(uint32_t id_namespace);
-
- OutputSurfaceMojoClient* output_surface_mojo_client_;
- ScopedMessagePipeHandle surface_handle_;
- SurfacePtr surface_;
- uint32_t id_namespace_;
- uint32_t local_id_;
- gfx::Size surface_size_;
+ InterfacePtrInfo<CompositorFrameReceiver> receiver_info_;
+ CompositorFrameReceiverPtr receiver_;
DISALLOW_COPY_AND_ASSIGN(OutputSurfaceMojo);
};

Powered by Google App Engine
This is Rietveld 408576698