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

Side by Side Diff: components/view_manager/surfaces/surfaces_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: Addressed comments 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 unified diff | Download patch
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_VIEW_MANAGER_SURFACES_SURFACES_IMPL_H_ 5 #ifndef COMPONENTS_VIEW_MANAGER_SURFACES_SURFACES_IMPL_H_
6 #define COMPONENTS_VIEW_MANAGER_SURFACES_SURFACES_IMPL_H_ 6 #define COMPONENTS_VIEW_MANAGER_SURFACES_SURFACES_IMPL_H_
7 7
8 #include "cc/surfaces/display_client.h" 8 #include "cc/surfaces/display_client.h"
9 #include "cc/surfaces/surface_factory.h" 9 #include "cc/surfaces/surface_factory.h"
10 #include "cc/surfaces/surface_factory_client.h" 10 #include "cc/surfaces/surface_factory_client.h"
(...skipping 24 matching lines...) Expand all
35 mojo::InterfaceRequest<mojo::Surface> request); 35 mojo::InterfaceRequest<mojo::Surface> request);
36 36
37 // Closes the connection and destroys |this| object. 37 // Closes the connection and destroys |this| object.
38 void CloseConnection(); 38 void CloseConnection();
39 39
40 // Surface implementation. 40 // Surface implementation.
41 void GetIdNamespace(const Surface::GetIdNamespaceCallback& callback) override; 41 void GetIdNamespace(const Surface::GetIdNamespaceCallback& callback) override;
42 void SetResourceReturner(mojo::ResourceReturnerPtr returner) override; 42 void SetResourceReturner(mojo::ResourceReturnerPtr returner) override;
43 void CreateSurface(uint32_t local_id) override; 43 void CreateSurface(uint32_t local_id) override;
44 void SubmitFrame(uint32_t local_id, 44 void SubmitFrame(uint32_t local_id,
45 mojo::FramePtr frame, 45 mojo::CompositorFramePtr frame,
46 const mojo::Closure& callback) override; 46 const mojo::Closure& callback) override;
47 void DestroySurface(uint32_t local_id) override; 47 void DestroySurface(uint32_t local_id) override;
48 48
49 // SurfaceFactoryClient implementation. 49 // SurfaceFactoryClient implementation.
50 void ReturnResources(const cc::ReturnedResourceArray& resources) override; 50 void ReturnResources(const cc::ReturnedResourceArray& resources) override;
51 51
52 cc::SurfaceFactory* factory() { return &factory_; } 52 cc::SurfaceFactory* factory() { return &factory_; }
53 53
54 private: 54 private:
55 ~SurfacesImpl() override; 55 ~SurfacesImpl() override;
(...skipping 14 matching lines...) Expand all
70 mojo::ResourceReturnerPtr returner_; 70 mojo::ResourceReturnerPtr returner_;
71 mojo::Binding<Surface> binding_; 71 mojo::Binding<Surface> binding_;
72 bool connection_closed_; 72 bool connection_closed_;
73 73
74 DISALLOW_COPY_AND_ASSIGN(SurfacesImpl); 74 DISALLOW_COPY_AND_ASSIGN(SurfacesImpl);
75 }; 75 };
76 76
77 } // namespace surfaces 77 } // namespace surfaces
78 78
79 #endif // COMPONENTS_VIEW_MANAGER_SURFACES_SURFACES_IMPL_H_ 79 #endif // COMPONENTS_VIEW_MANAGER_SURFACES_SURFACES_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698