blob: ca7393a8de99beba3327634f3996c4d79b6ddfa1 [file] [log] [blame]
// Copyright 2017 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 CanvasResourceHost_h
#define CanvasResourceHost_h
#include "platform/PlatformExport.h"
#include "platform/graphics/paint/PaintCanvas.h"
namespace blink {
class PLATFORM_EXPORT CanvasResourceHost {
public:
virtual ~CanvasResourceHost() = default;
virtual void NotifySurfaceInvalid() = 0;
virtual void SetNeedsCompositingUpdate() = 0;
virtual void RestoreCanvasMatrixClipStack(PaintCanvas*) const = 0;
virtual void UpdateMemoryUsage() = 0;
};
} // namespace blink
#endif