Chromium Code Reviews| 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_ |
| 7 | 7 |
| 8 namespace content { | 8 namespace content { |
| 9 | 9 |
| 10 class SynchronousCompositor; | 10 class SynchronousCompositor; |
| 11 | 11 |
| 12 class SynchronousCompositorClient { | 12 class SynchronousCompositorClient { |
| 13 public: | 13 public: |
| 14 // Indication to the client that |compositor| is going out of scope, and | 14 // Indication to the client that |compositor| is going out of scope, and |
| 15 // must not be accessed within or after this call. | 15 // must not be accessed within or after this call. |
| 16 // NOTE if the client goes away before the compositor it must call | 16 // NOTE if the client goes away before the compositor it must call |
| 17 // SynchronousCompositor::SetClient(NULL) to release the back pointer. | 17 // SynchronousCompositor::SetClient(NULL) to release the back pointer. |
| 18 virtual void DidDestroyCompositor(SynchronousCompositor* compositor) = 0; | 18 virtual void DidDestroyCompositor(SynchronousCompositor* compositor) = 0; |
| 19 | 19 |
| 20 // TODO(joth): Add scroll getters and setters, and invalidations. | 20 // TODO(joth): Add scroll getters and setters, and invalidations. |
|
joth
2013/05/03 01:26:26
nix 'invalidations'
| |
| 21 | 21 |
| 22 // When true, should periodically call | |
| 23 // SynchronousCompositorOutputSurface::DemandDrawHw. Note that this value | |
| 24 // can change inside DemandDrawHw call. | |
| 25 virtual void SetContinuousInvalidate(bool invalidate) = 0; | |
| 26 | |
| 22 protected: | 27 protected: |
| 23 virtual ~SynchronousCompositorClient() {} | 28 virtual ~SynchronousCompositorClient() {} |
| 24 }; | 29 }; |
| 25 | 30 |
| 26 } // namespace content | 31 } // namespace content |
| 27 | 32 |
| 28 #endif // CONTENT_PUBLIC_RENDERER_ANDROID_SYNCHRONOUS_COMPOSTIOR_CLIENT_H_ | 33 #endif // CONTENT_PUBLIC_RENDERER_ANDROID_SYNCHRONOUS_COMPOSTIOR_CLIENT_H_ |
| OLD | NEW |