Popular sites on the NTP: Try to keep the ordering constant
[chromium-blink-merge.git] / content / public / browser / android / compositor_client.h
blob29c4a289eda00b78b44a8c3f6670cad60cd5bd85
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_PUBLIC_BROWSER_ANDROID_COMPOSITOR_CLIENT_H_
6 #define CONTENT_PUBLIC_BROWSER_ANDROID_COMPOSITOR_CLIENT_H_
8 #include "content/common/content_export.h"
10 namespace content {
12 class CONTENT_EXPORT CompositorClient {
13 public:
14 // Gives the client a chance for layout changes before compositing.
15 virtual void Layout() {}
17 // The compositor has completed swapping a frame.
18 virtual void OnSwapBuffersCompleted(int pending_swap_buffers) {}
20 protected:
21 CompositorClient() {}
22 virtual ~CompositorClient() {}
24 private:
25 DISALLOW_COPY_AND_ASSIGN(CompositorClient);
28 } // namespace content
30 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_COMPOSITOR_CLIENT_H_