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

Side by Side Diff: components/mus/public/cpp/output_surface.h

Issue 2019833002: Implement StructTraits for various cc and gpu types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mailbox_name by ref to make windows happy Created 4 years, 6 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_MUS_PUBLIC_CPP_OUTPUT_SURFACE_H_ 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_OUTPUT_SURFACE_H_
6 #define COMPONENTS_MUS_PUBLIC_CPP_OUTPUT_SURFACE_H_ 6 #define COMPONENTS_MUS_PUBLIC_CPP_OUTPUT_SURFACE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "cc/output/output_surface.h" 9 #include "cc/output/output_surface.h"
10 #include "cc/surfaces/surface_id.h" 10 #include "cc/surfaces/surface_id.h"
(...skipping 11 matching lines...) Expand all
22 22
23 // cc::OutputSurface implementation. 23 // cc::OutputSurface implementation.
24 void SwapBuffers(cc::CompositorFrame* frame) override; 24 void SwapBuffers(cc::CompositorFrame* frame) override;
25 bool BindToClient(cc::OutputSurfaceClient* client) override; 25 bool BindToClient(cc::OutputSurfaceClient* client) override;
26 void DetachFromClient() override; 26 void DetachFromClient() override;
27 27
28 private: 28 private:
29 // WindowSurfaceClient implementation: 29 // WindowSurfaceClient implementation:
30 void OnResourcesReturned( 30 void OnResourcesReturned(
31 WindowSurface* surface, 31 WindowSurface* surface,
32 mojo::Array<mojom::ReturnedResourcePtr> resources) override; 32 mojo::Array<cc::ReturnedResource> resources) override;
33 33
34 void SwapBuffersComplete(); 34 void SwapBuffersComplete();
35 35
36 std::unique_ptr<WindowSurface> surface_; 36 std::unique_ptr<WindowSurface> surface_;
37 37
38 DISALLOW_COPY_AND_ASSIGN(OutputSurface); 38 DISALLOW_COPY_AND_ASSIGN(OutputSurface);
39 }; 39 };
40 40
41 } // namespace mus 41 } // namespace mus
42 42
43 #endif // COMPONENTS_MUS_PUBLIC_CPP_OUTPUT_SURFACE_H_ 43 #endif // COMPONENTS_MUS_PUBLIC_CPP_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « components/mus/public/cpp/lib/window_surface.cc ('k') | components/mus/public/cpp/surfaces/surfaces_type_converters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698