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

Side by Side Diff: blimp/client/compositor/blimp_compositor.h

Issue 1570943002: [Blimp client] Move client code into blimp::client namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 11 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
« no previous file with comments | « blimp/client/blimp_startup.cc ('k') | blimp/client/compositor/blimp_compositor.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 BLIMP_CLIENT_COMPOSITOR_BLIMP_COMPOSITOR_H_ 5 #ifndef BLIMP_CLIENT_COMPOSITOR_BLIMP_COMPOSITOR_H_
6 #define BLIMP_CLIENT_COMPOSITOR_BLIMP_COMPOSITOR_H_ 6 #define BLIMP_CLIENT_COMPOSITOR_BLIMP_COMPOSITOR_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 15 matching lines...) Expand all
26 } 26 }
27 27
28 namespace cc { 28 namespace cc {
29 class LayerTreeHost; 29 class LayerTreeHost;
30 } 30 }
31 31
32 namespace blimp { 32 namespace blimp {
33 33
34 class BlimpMessage; 34 class BlimpMessage;
35 35
36 namespace client {
37
36 // BlimpCompositor provides the basic framework and setup to host a 38 // BlimpCompositor provides the basic framework and setup to host a
37 // LayerTreeHost. The class that owns the LayerTreeHost is usually called the 39 // LayerTreeHost. The class that owns the LayerTreeHost is usually called the
38 // compositor, but the LayerTreeHost does the compositing work. The rendering 40 // compositor, but the LayerTreeHost does the compositing work. The rendering
39 // surface this compositor draws to is defined by the gfx::AcceleratedWidget set 41 // surface this compositor draws to is defined by the gfx::AcceleratedWidget set
40 // by SetAcceleratedWidget(). This class should only be accessed from the main 42 // by SetAcceleratedWidget(). This class should only be accessed from the main
41 // thread. Any interaction with the compositing thread should happen through 43 // thread. Any interaction with the compositing thread should happen through
42 // the LayerTreeHost or RemoteChannelImpl. 44 // the LayerTreeHost or RemoteChannelImpl.
43 class BLIMP_CLIENT_EXPORT BlimpCompositor 45 class BLIMP_CLIENT_EXPORT BlimpCompositor
44 : public cc::LayerTreeHostClient, 46 : public cc::LayerTreeHostClient,
45 public cc::RemoteProtoChannel, 47 public cc::RemoteProtoChannel,
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 // Handles input events for the current render widget. The lifetime of the 172 // Handles input events for the current render widget. The lifetime of the
171 // input manager is tied to the lifetime of the |host_| which owns the 173 // input manager is tied to the lifetime of the |host_| which owns the
172 // cc::InputHandler. The input events are forwarded to this input handler by 174 // cc::InputHandler. The input events are forwarded to this input handler by
173 // the manager to be handled by the client compositor for the current render 175 // the manager to be handled by the client compositor for the current render
174 // widget. 176 // widget.
175 scoped_ptr<BlimpInputManager> input_manager_; 177 scoped_ptr<BlimpInputManager> input_manager_;
176 178
177 DISALLOW_COPY_AND_ASSIGN(BlimpCompositor); 179 DISALLOW_COPY_AND_ASSIGN(BlimpCompositor);
178 }; 180 };
179 181
182 } // namespace client
180 } // namespace blimp 183 } // namespace blimp
181 184
182 #endif // BLIMP_CLIENT_COMPOSITOR_BLIMP_COMPOSITOR_H_ 185 #endif // BLIMP_CLIENT_COMPOSITOR_BLIMP_COMPOSITOR_H_
OLDNEW
« no previous file with comments | « blimp/client/blimp_startup.cc ('k') | blimp/client/compositor/blimp_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698