Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(163)

Side by Side Diff: content/public/renderer/android/synchronous_compositor_client.h

Issue 15875009: Refactor SynchronousCompositor out of SynchronousCompositorOutputSurface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix rebase mistake Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_COMPOSITOR_CLIENT_H_
6 #define CONTENT_PUBLIC_RENDERER_ANDROID_SYNCRHONOUS_COMPOSITOR_CLIENT_H_ 6 #define CONTENT_PUBLIC_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_CLIENT_H_
7
8 #include "base/basictypes.h"
7 9
8 namespace content { 10 namespace content {
9 11
10 class SynchronousCompositor; 12 class SynchronousCompositor;
11 13
12 class SynchronousCompositorClient { 14 class SynchronousCompositorClient {
13 public: 15 public:
14 // Indication to the client that |compositor| is going out of scope, and 16 // Indication to the client that |compositor| is going out of scope, and
15 // must not be accessed within or after this call. 17 // must not be accessed within or after this call.
16 // NOTE if the client goes away before the compositor it must call 18 // NOTE if the client goes away before the compositor it must call
17 // SynchronousCompositor::SetClient(NULL) to release the back pointer. 19 // SynchronousCompositor::SetClient(NULL) to release the back pointer.
18 virtual void DidDestroyCompositor(SynchronousCompositor* compositor) = 0; 20 virtual void DidDestroyCompositor(SynchronousCompositor* compositor) = 0;
19 21
20 // TODO(joth): Add scroll getters and setters. 22 // TODO(joth): Add scroll getters and setters.
21 23
22 // When true, should periodically call 24 // When true, should periodically call
23 // SynchronousCompositorOutputSurface::DemandDrawHw. Note that this value 25 // SynchronousCompositorOutputSurface::DemandDrawHw. Note that this value
24 // can change inside DemandDrawHw call. 26 // can change inside DemandDrawHw call.
25 virtual void SetContinuousInvalidate(bool invalidate) = 0; 27 virtual void SetContinuousInvalidate(bool invalidate) = 0;
26 28
27 protected: 29 protected:
30 SynchronousCompositorClient() {}
28 virtual ~SynchronousCompositorClient() {} 31 virtual ~SynchronousCompositorClient() {}
32
33 private:
34 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorClient);
29 }; 35 };
30 36
31 } // namespace content 37 } // namespace content
32 38
33 #endif // CONTENT_PUBLIC_RENDERER_ANDROID_SYNCHRONOUS_COMPOSTIOR_CLIENT_H_ 39 #endif // CONTENT_PUBLIC_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_CLIENT_H_
OLDNEW
« no previous file with comments | « content/public/renderer/android/synchronous_compositor.h ('k') | content/renderer/android/synchronous_compositor_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698