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

Side by Side Diff: mojo/examples/surfaces_app/embedder.h

Issue 451753003: Mojo multiple command buffer support and sample (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: better casts 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
« no previous file with comments | « mojo/examples/surfaces_app/child_gl_impl.cc ('k') | mojo/examples/surfaces_app/embedder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 MOJO_EXAMPLES_SURFACES_APP_EMBEDDER_H_ 5 #ifndef MOJO_EXAMPLES_SURFACES_APP_EMBEDDER_H_
6 #define MOJO_EXAMPLES_SURFACES_APP_EMBEDDER_H_ 6 #define MOJO_EXAMPLES_SURFACES_APP_EMBEDDER_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "cc/surfaces/surface_id.h" 9 #include "cc/surfaces/surface_id.h"
10 #include "mojo/services/public/interfaces/surfaces/surfaces.mojom.h" 10 #include "mojo/services/public/interfaces/surfaces/surfaces.mojom.h"
(...skipping 13 matching lines...) Expand all
24 class Embedder { 24 class Embedder {
25 public: 25 public:
26 explicit Embedder(Surface* surface); 26 explicit Embedder(Surface* surface);
27 ~Embedder(); 27 ~Embedder();
28 28
29 void SetSurfaceId(cc::SurfaceId id) { id_ = id; } 29 void SetSurfaceId(cc::SurfaceId id) { id_ = id; }
30 void ProduceFrame(cc::SurfaceId child_one, 30 void ProduceFrame(cc::SurfaceId child_one,
31 cc::SurfaceId child_two, 31 cc::SurfaceId child_two,
32 const gfx::Size& child_size, 32 const gfx::Size& child_size,
33 const gfx::Size& size, 33 const gfx::Size& size,
34 double rotation_degrees); 34 int offset);
35 35
36 private: 36 private:
37 cc::SurfaceId id_; 37 cc::SurfaceId id_;
38 Surface* surface_; 38 Surface* surface_;
39 39
40 DISALLOW_COPY_AND_ASSIGN(Embedder); 40 DISALLOW_COPY_AND_ASSIGN(Embedder);
41 }; 41 };
42 42
43 } // namespace examples 43 } // namespace examples
44 } // namespace mojo 44 } // namespace mojo
45 45
46 #endif // MOJO_EXAMPLES_SURFACES_APP_EMBEDDER_H_ 46 #endif // MOJO_EXAMPLES_SURFACES_APP_EMBEDDER_H_
OLDNEW
« no previous file with comments | « mojo/examples/surfaces_app/child_gl_impl.cc ('k') | mojo/examples/surfaces_app/embedder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698