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

Side by Side Diff: mojo/cc/output_surface_mojo.h

Issue 504443002: Update mojo surfaces bindings and mojo/cc/ glue (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef MOJO_CC_OUTPUT_SURFACE_MOJO_H_
6 #define MOJO_CC_OUTPUT_SURFACE_MOJO_H_
7
8 #include "cc/output/output_surface.h"
9 #include "cc/surfaces/surface_id.h"
10 #include "cc/surfaces/surface_id_allocator.h"
11 #include "mojo/services/public/interfaces/surfaces/surfaces.mojom.h"
12
13 namespace mojo {
14
15 class OutputSurfaceMojo : public cc::OutputSurface, public SurfaceClient {
16 public:
17 explicit OutputSurfaceMojo(
sky 2014/08/22 22:20:09 nit: no explicit.
18 const scoped_refptr<cc::ContextProvider>& context_provider,
19 SurfacePtr surface,
20 uint32_t id_namespace);
21 virtual ~OutputSurfaceMojo();
22
23 // SurfaceClient implementation.
24 virtual void ReturnResources(Array<ReturnedResourcePtr> resources) OVERRIDE;
25
26 // cc::OutputSurface implementation.
27 virtual void SwapBuffers(cc::CompositorFrame* frame) OVERRIDE;
28
29 private:
30 SurfacePtr surface_;
31 cc::SurfaceIdAllocator id_allocator_;
32 cc::SurfaceId surface_id_;
33 gfx::Size surface_size_;
34
35 DISALLOW_COPY_AND_ASSIGN(OutputSurfaceMojo);
36 };
37 }
38
39 #endif // MOJO_CC_OUTPUT_SURFACE_MOJO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698