| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 UI_COMPOSITOR_COMPOSITOR_H_ | 5 #ifndef UI_COMPOSITOR_COMPOSITOR_H_ |
| 6 #define UI_COMPOSITOR_COMPOSITOR_H_ | 6 #define UI_COMPOSITOR_COMPOSITOR_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 namespace cc { | 39 namespace cc { |
| 40 class AnimationHost; | 40 class AnimationHost; |
| 41 class AnimationTimeline; | 41 class AnimationTimeline; |
| 42 class ContextProvider; | 42 class ContextProvider; |
| 43 class Layer; | 43 class Layer; |
| 44 class LayerTreeDebugState; | 44 class LayerTreeDebugState; |
| 45 class LayerTreeHost; | 45 class LayerTreeHost; |
| 46 class RendererSettings; | 46 class RendererSettings; |
| 47 class SurfaceManager; | 47 class SurfaceManager; |
| 48 class FrameSinkManager; |
| 48 class TaskGraphRunner; | 49 class TaskGraphRunner; |
| 49 } | 50 } |
| 50 | 51 |
| 51 namespace gfx { | 52 namespace gfx { |
| 52 class Rect; | 53 class Rect; |
| 53 class ScrollOffset; | 54 class ScrollOffset; |
| 54 class Size; | 55 class Size; |
| 55 } | 56 } |
| 56 | 57 |
| 57 namespace gpu { | 58 namespace gpu { |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 | 95 |
| 95 // Removes the reflector, which stops the mirroring. | 96 // Removes the reflector, which stops the mirroring. |
| 96 virtual void RemoveReflector(Reflector* reflector) = 0; | 97 virtual void RemoveReflector(Reflector* reflector) = 0; |
| 97 | 98 |
| 98 // Allocate a new client ID for the display compositor. | 99 // Allocate a new client ID for the display compositor. |
| 99 virtual cc::FrameSinkId AllocateFrameSinkId() = 0; | 100 virtual cc::FrameSinkId AllocateFrameSinkId() = 0; |
| 100 | 101 |
| 101 // Gets the surface manager. | 102 // Gets the surface manager. |
| 102 virtual cc::SurfaceManager* GetSurfaceManager() = 0; | 103 virtual cc::SurfaceManager* GetSurfaceManager() = 0; |
| 103 | 104 |
| 105 virtual cc::FrameSinkManager* GetFrameSinkManager() = 0; |
| 106 |
| 104 // Inform the display corresponding to this compositor if it is visible. When | 107 // Inform the display corresponding to this compositor if it is visible. When |
| 105 // false it does not need to produce any frames. Visibility is reset for each | 108 // false it does not need to produce any frames. Visibility is reset for each |
| 106 // call to CreateCompositorFrameSink. | 109 // call to CreateCompositorFrameSink. |
| 107 virtual void SetDisplayVisible(ui::Compositor* compositor, bool visible) = 0; | 110 virtual void SetDisplayVisible(ui::Compositor* compositor, bool visible) = 0; |
| 108 | 111 |
| 109 // Resize the display corresponding to this compositor to a particular size. | 112 // Resize the display corresponding to this compositor to a particular size. |
| 110 virtual void ResizeDisplay(ui::Compositor* compositor, | 113 virtual void ResizeDisplay(ui::Compositor* compositor, |
| 111 const gfx::Size& size) = 0; | 114 const gfx::Size& size) = 0; |
| 112 | 115 |
| 113 // Set the output color profile into which this compositor should render. | 116 // Set the output color profile into which this compositor should render. |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 438 gfx::ColorSpace color_space_; | 441 gfx::ColorSpace color_space_; |
| 439 | 442 |
| 440 base::WeakPtrFactory<Compositor> weak_ptr_factory_; | 443 base::WeakPtrFactory<Compositor> weak_ptr_factory_; |
| 441 | 444 |
| 442 DISALLOW_COPY_AND_ASSIGN(Compositor); | 445 DISALLOW_COPY_AND_ASSIGN(Compositor); |
| 443 }; | 446 }; |
| 444 | 447 |
| 445 } // namespace ui | 448 } // namespace ui |
| 446 | 449 |
| 447 #endif // UI_COMPOSITOR_COMPOSITOR_H_ | 450 #endif // UI_COMPOSITOR_COMPOSITOR_H_ |
| OLD | NEW |