Automated Commit: Committing new LKGM version 6953.0.0 for chromeos.
[chromium-blink-merge.git] / cc / surfaces / display_client.h
blob71ee43439d0f003ac04580a5d6cb84734aba4537
1 // Copyright 2014 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 CC_SURFACES_DISPLAY_CLIENT_H_
6 #define CC_SURFACES_DISPLAY_CLIENT_H_
8 #include "base/memory/scoped_ptr.h"
9 #include "base/time/time.h"
11 namespace cc {
13 struct ManagedMemoryPolicy;
15 class DisplayClient {
16 public:
17 virtual void DisplayDamaged() = 0;
18 virtual void DidSwapBuffers() = 0;
19 virtual void DidSwapBuffersComplete() = 0;
20 virtual void CommitVSyncParameters(base::TimeTicks timebase,
21 base::TimeDelta interval) = 0;
22 virtual void OutputSurfaceLost() = 0;
23 virtual void SetMemoryPolicy(const ManagedMemoryPolicy& policy) = 0;
25 protected:
26 virtual ~DisplayClient() {}
29 } // namespace cc
31 #endif // CC_SURFACES_DISPLAY_CLIENT_H_