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

Side by Side Diff: components/view_manager/surfaces/surfaces_impl.h

Issue 1245683004: Mandoline: Merge Surfaces and Views apps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: August 18 Rebase 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
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;
56 56
57 cc::SurfaceId QualifyIdentifier(uint32_t local_id); 57 cc::SurfaceId QualifyIdentifier(uint32_t local_id);
58 58
59 SurfacesDelegate* delegate_; 59 SurfacesDelegate* delegate_;
60 // A Surface ID is an unsigned 64-bit int where the high 32-bits are generated
61 // by the Surfaces service, and the low 32-bits are generated by the process
62 // that requested the Surface.
60 scoped_refptr<SurfacesState> state_; 63 scoped_refptr<SurfacesState> state_;
61 // A Surface ID is an unsigned 64-bit int where the high 32-bits are generated 64 // A Surface ID is an unsigned 64-bit int where the high 32-bits are generated
62 // by the Surfaces service, and the low 32-bits are generated by the process 65 // by the Surfaces service, and the low 32-bits are generated by the process
63 // that requested the Surface. 66 // that requested the Surface.
64 const uint32_t id_namespace_; 67 const uint32_t id_namespace_;
65 cc::SurfaceFactory factory_; 68 cc::SurfaceFactory factory_;
66 mojo::ScopedMessagePipeHandle command_buffer_handle_; 69 mojo::ScopedMessagePipeHandle command_buffer_handle_;
67 mojo::ResourceReturnerPtr returner_; 70 mojo::ResourceReturnerPtr returner_;
68 mojo::Binding<Surface> binding_; 71 mojo::Binding<Surface> binding_;
69 bool connection_closed_; 72 bool connection_closed_;
70 73
71 DISALLOW_COPY_AND_ASSIGN(SurfacesImpl); 74 DISALLOW_COPY_AND_ASSIGN(SurfacesImpl);
72 }; 75 };
73 76
74 } // namespace surfaces 77 } // namespace surfaces
75 78
76 #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