| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_SUPPORT_COMPOSITOR_BLIMP_EMBEDDER_COMPOSITOR_H_ | 5 #ifndef BLIMP_CLIENT_SUPPORT_COMPOSITOR_BLIMP_EMBEDDER_COMPOSITOR_H_ |
| 6 #define BLIMP_CLIENT_SUPPORT_COMPOSITOR_BLIMP_EMBEDDER_COMPOSITOR_H_ | 6 #define BLIMP_CLIENT_SUPPORT_COMPOSITOR_BLIMP_EMBEDDER_COMPOSITOR_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| 11 #include "cc/layers/layer.h" | 11 #include "cc/layers/layer.h" |
| 12 #include "cc/surfaces/frame_sink_id.h" | 12 #include "cc/surfaces/frame_sink_id.h" |
| 13 #include "cc/trees/layer_tree_host_client.h" | 13 #include "cc/trees/layer_tree_host_client.h" |
| 14 #include "cc/trees/layer_tree_host_single_thread_client.h" | 14 #include "cc/trees/layer_tree_host_single_thread_client.h" |
| 15 #include "ui/gfx/geometry/size.h" | 15 #include "ui/gfx/geometry/size.h" |
| 16 | 16 |
| 17 namespace cc { | 17 namespace cc { |
| 18 class AnimationHost; | 18 class AnimationHost; |
| 19 class ContextProvider; | 19 class ContextProvider; |
| 20 class Display; | 20 class Display; |
| 21 class LayerTreeHost; | 21 class LayerTreeHost; |
| 22 class SurfaceManager; | |
| 23 } // namespace cc | 22 } // namespace cc |
| 24 | 23 |
| 25 namespace blimp { | 24 namespace blimp { |
| 26 namespace client { | 25 namespace client { |
| 27 class CompositorDependencies; | 26 class CompositorDependencies; |
| 28 | 27 |
| 29 // The parent compositor that embeds the content from the BlimpCompositor for | 28 // The parent compositor that embeds the content from the BlimpCompositor for |
| 30 // the current page and draws it to a display. | 29 // the current page and draws it to a display. |
| 31 class BlimpEmbedderCompositor : public cc::LayerTreeHostClient, | 30 class BlimpEmbedderCompositor : public cc::LayerTreeHostClient, |
| 32 public cc::LayerTreeHostSingleThreadClient { | 31 public cc::LayerTreeHostSingleThreadClient { |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 | 92 |
| 94 base::Closure did_complete_swap_buffers_; | 93 base::Closure did_complete_swap_buffers_; |
| 95 | 94 |
| 96 DISALLOW_COPY_AND_ASSIGN(BlimpEmbedderCompositor); | 95 DISALLOW_COPY_AND_ASSIGN(BlimpEmbedderCompositor); |
| 97 }; | 96 }; |
| 98 | 97 |
| 99 } // namespace client | 98 } // namespace client |
| 100 } // namespace blimp | 99 } // namespace blimp |
| 101 | 100 |
| 102 #endif // BLIMP_CLIENT_SUPPORT_COMPOSITOR_BLIMP_EMBEDDER_COMPOSITOR_H_ | 101 #endif // BLIMP_CLIENT_SUPPORT_COMPOSITOR_BLIMP_EMBEDDER_COMPOSITOR_H_ |
| OLD | NEW |