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"
13 struct ManagedMemoryPolicy
;
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;
26 virtual ~DisplayClient() {}
31 #endif // CC_SURFACES_DISPLAY_CLIENT_H_