mirror of
https://github.com/encounter/engine.git
synced 2026-03-30 11:09:55 -07:00
d86eedd1aa
This CL contains enough plumbing for Sky to render content to the screen using Ganesh in SkyShell. We're still missing the ability to load data off the network. R=eseidel@chromium.org, ojan@chromium.org Review URL: https://codereview.chromium.org/936883002
30 lines
695 B
C++
30 lines
695 B
C++
// Copyright 2015 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 SKY_SHELL_GPU_DELEGATE_H_
|
|
#define SKY_SHELL_GPU_DELEGATE_H_
|
|
|
|
#include "skia/ext/refptr.h"
|
|
#include "ui/gfx/native_widget_types.h"
|
|
|
|
class SkPicture;
|
|
|
|
namespace sky {
|
|
namespace shell {
|
|
|
|
class GPUDelegate {
|
|
public:
|
|
virtual void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget) = 0;
|
|
virtual void OnOutputSurfaceDestroyed() = 0;
|
|
virtual void Draw(skia::RefPtr<SkPicture> picture) = 0;
|
|
|
|
protected:
|
|
virtual ~GPUDelegate();
|
|
};
|
|
|
|
} // namespace shell
|
|
} // namespace sky
|
|
|
|
#endif // SKY_SHELL_GPU_DELEGATE_H_
|