blob: 432b44ac5c8d6708efb07920056ab13bd071c4e0 [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CC_SURFACES_DISPLAY_CLIENT_H_
#define CC_SURFACES_DISPLAY_CLIENT_H_
#include "cc/quads/render_pass.h"
namespace cc {
struct ManagedMemoryPolicy;
class DisplayClient {
public:
virtual ~DisplayClient() {}
virtual void DisplayOutputSurfaceLost() = 0;
virtual void DisplaySetMemoryPolicy(const ManagedMemoryPolicy& policy) = 0;
virtual void DisplayWillDrawAndSwap(bool will_draw_and_swap,
const RenderPassList& render_passes) = 0;
virtual void DisplayDidDrawAndSwap() = 0;
};
} // namespace cc
#endif // CC_SURFACES_DISPLAY_CLIENT_H_