| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |