OLD | NEW |
---|---|
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 CONTENT_PUBLIC_RENDERER_ANDROID_SYNCHRONOUS_COMPOSTIOR_CLIENT_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_ANDROID_SYNCHRONOUS_COMPOSTIOR_CLIENT_H_ |
6 #define CONTENT_PUBLIC_RENDERER_ANDROID_SYNCRHONOUS_COMPOSITOR_CLIENT_H_ | 6 #define CONTENT_PUBLIC_RENDERER_ANDROID_SYNCRHONOUS_COMPOSITOR_CLIENT_H_ |
jamesr
2013/05/22 01:28:13
same typo here - s/COMPOSTIOR/COMPOSITOR/
mkosiba (inactive)
2013/05/22 17:26:17
haha! no, the typo in this file is in syncrhonous
| |
7 | 7 |
8 #include "base/basictypes.h" | |
9 | |
10 namespace gfx { | |
11 class Vector2dF; | |
jamesr
2013/05/22 01:28:13
forward decl can't help when the type is passed by
mkosiba (inactive)
2013/05/22 17:26:17
Done.
| |
12 } | |
13 | |
8 namespace content { | 14 namespace content { |
9 | 15 |
10 class SynchronousCompositor; | 16 class SynchronousCompositor; |
11 | 17 |
12 class SynchronousCompositorClient { | 18 class SynchronousCompositorClient { |
13 public: | 19 public: |
14 // Indication to the client that |compositor| is going out of scope, and | 20 // Indication to the client that |compositor| is going out of scope, and |
15 // must not be accessed within or after this call. | 21 // must not be accessed within or after this call. |
16 // NOTE if the client goes away before the compositor it must call | 22 // NOTE if the client goes away before the compositor it must call |
17 // SynchronousCompositor::SetClient(NULL) to release the back pointer. | 23 // SynchronousCompositor::SetClient(NULL) to release the back pointer. |
18 virtual void DidDestroyCompositor(SynchronousCompositor* compositor) = 0; | 24 virtual void DidDestroyCompositor(SynchronousCompositor* compositor) = 0; |
19 | 25 |
20 // TODO(joth): Add scroll getters and setters. | 26 // See LayerScrollOffsetDelegate for details. |
27 virtual void SetTotalRootLayerScrollOffset(gfx::Vector2dF new_value) = 0; | |
28 virtual gfx::Vector2dF GetTotalRootLayerScrollOffset() = 0; | |
21 | 29 |
22 // When true, should periodically call | 30 // When true, should periodically call |
23 // SynchronousCompositorOutputSurface::DemandDrawHw. Note that this value | 31 // SynchronousCompositorOutputSurface::DemandDrawHw. Note that this value |
24 // can change inside DemandDrawHw call. | 32 // can change inside DemandDrawHw call. |
25 virtual void SetContinuousInvalidate(bool invalidate) = 0; | 33 virtual void SetContinuousInvalidate(bool invalidate) = 0; |
26 | 34 |
27 protected: | 35 protected: |
36 SynchronousCompositorClient() {} | |
28 virtual ~SynchronousCompositorClient() {} | 37 virtual ~SynchronousCompositorClient() {} |
38 | |
39 private: | |
40 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorClient); | |
29 }; | 41 }; |
30 | 42 |
31 } // namespace content | 43 } // namespace content |
32 | 44 |
33 #endif // CONTENT_PUBLIC_RENDERER_ANDROID_SYNCHRONOUS_COMPOSTIOR_CLIENT_H_ | 45 #endif // CONTENT_PUBLIC_RENDERER_ANDROID_SYNCHRONOUS_COMPOSTIOR_CLIENT_H_ |
OLD | NEW |