| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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 CC_TREES_PROXY_H_ | 5 #ifndef CC_TREES_PROXY_H_ |
| 6 #define CC_TREES_PROXY_H_ | 6 #define CC_TREES_PROXY_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "base/threading/platform_thread.h" | 13 #include "base/threading/platform_thread.h" |
| 14 #include "base/time/time.h" | 14 #include "base/time/time.h" |
| 15 #include "base/values.h" | 15 #include "base/values.h" |
| 16 #include "cc/base/cc_export.h" | 16 #include "cc/base/cc_export.h" |
| 17 #include "cc/input/browser_controls_state.h" | 17 #include "cc/input/browser_controls_state.h" |
| 18 #include "cc/scheduler/begin_frame_source.h" | 18 #include "cc/scheduler/begin_frame_source.h" |
| 19 #include "cc/trees/task_runner_provider.h" | 19 #include "cc/trees/task_runner_provider.h" |
| 20 | 20 |
| 21 namespace gfx { | 21 namespace gfx { |
| 22 class Rect; | 22 class Rect; |
| 23 class Vector2d; | |
| 24 } | 23 } |
| 25 | 24 |
| 26 namespace cc { | 25 namespace cc { |
| 27 class BeginFrameSource; | |
| 28 class LayerTreeDebugState; | |
| 29 class LayerTreeMutator; | 26 class LayerTreeMutator; |
| 30 class CompositorFrameSink; | 27 class CompositorFrameSink; |
| 31 | 28 |
| 32 // Abstract interface responsible for proxying commands from the main-thread | 29 // Abstract interface responsible for proxying commands from the main-thread |
| 33 // side of the compositor over to the compositor implementation. | 30 // side of the compositor over to the compositor implementation. |
| 34 class CC_EXPORT Proxy { | 31 class CC_EXPORT Proxy { |
| 35 public: | 32 public: |
| 36 virtual ~Proxy() {} | 33 virtual ~Proxy() {} |
| 37 | 34 |
| 38 virtual bool IsStarted() const = 0; | 35 virtual bool IsStarted() const = 0; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 BrowserControlsState current, | 74 BrowserControlsState current, |
| 78 bool animate) = 0; | 75 bool animate) = 0; |
| 79 | 76 |
| 80 // Testing hooks | 77 // Testing hooks |
| 81 virtual bool MainFrameWillHappenForTesting() = 0; | 78 virtual bool MainFrameWillHappenForTesting() = 0; |
| 82 }; | 79 }; |
| 83 | 80 |
| 84 } // namespace cc | 81 } // namespace cc |
| 85 | 82 |
| 86 #endif // CC_TREES_PROXY_H_ | 83 #endif // CC_TREES_PROXY_H_ |
| OLD | NEW |