OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 CC_OUTPUT_OUTPUT_SURFACE_CLIENT_H_ | 5 #ifndef CC_OUTPUT_OUTPUT_SURFACE_CLIENT_H_ |
6 #define CC_OUTPUT_OUTPUT_SURFACE_CLIENT_H_ | 6 #define CC_OUTPUT_OUTPUT_SURFACE_CLIENT_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
11 #include "cc/base/cc_export.h" | 11 #include "cc/base/cc_export.h" |
12 #include "cc/output/begin_frame_args.h" | 12 #include "cc/output/begin_frame_args.h" |
13 #include "cc/output/context_provider.h" | 13 #include "cc/output/context_provider.h" |
14 #include "ui/gfx/rect.h" | 14 #include "ui/gfx/geometry/rect.h" |
15 | 15 |
16 namespace gfx { | 16 namespace gfx { |
17 class Transform; | 17 class Transform; |
18 } | 18 } |
19 | 19 |
20 namespace cc { | 20 namespace cc { |
21 | 21 |
22 class CompositorFrameAck; | 22 class CompositorFrameAck; |
23 struct ManagedMemoryPolicy; | 23 struct ManagedMemoryPolicy; |
24 | 24 |
(...skipping 27 matching lines...) Expand all Loading... |
52 // use SetTreeActivationCallback(base::Closure()) to unregister it. | 52 // use SetTreeActivationCallback(base::Closure()) to unregister it. |
53 virtual void SetTreeActivationCallback(const base::Closure& callback) = 0; | 53 virtual void SetTreeActivationCallback(const base::Closure& callback) = 0; |
54 | 54 |
55 protected: | 55 protected: |
56 virtual ~OutputSurfaceClient() {} | 56 virtual ~OutputSurfaceClient() {} |
57 }; | 57 }; |
58 | 58 |
59 } // namespace cc | 59 } // namespace cc |
60 | 60 |
61 #endif // CC_OUTPUT_OUTPUT_SURFACE_CLIENT_H_ | 61 #endif // CC_OUTPUT_OUTPUT_SURFACE_CLIENT_H_ |
OLD | NEW |