Chromium Code Reviews| Index: sky/shell/gpu_delegate.h |
| diff --git a/sky/shell/gpu_delegate.h b/sky/shell/gpu_delegate.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..1f98bd4deb995dfd6d0cae1885e29549ef705a28 |
| --- /dev/null |
| +++ b/sky/shell/gpu_delegate.h |
| @@ -0,0 +1,25 @@ |
| +// 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 "ui/gfx/native_widget_types.h" |
| + |
| +namespace sky { |
| +namespace shell { |
| + |
| +class GPUDelegate { |
| + public: |
| + virtual void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget) = 0; |
|
eseidel
2015/02/05 05:57:28
Is AcceleratedWidget a pointer? Should this be co
abarth-chromium
2015/02/05 06:16:23
It's a platform-specific typedef, but it boils dow
|
| + virtual void OnDestroyed() = 0; |
| + |
| + protected: |
| + virtual ~GPUDelegate(); |
| +}; |
| + |
| +} // namespace shell |
| +} // namespace sky |
| + |
| +#endif // SKY_SHELL_GPU_DELEGATE_H_ |