OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef SKY_SHELL_GPU_DELEGATE_H_ | 5 #ifndef SKY_SHELL_GPU_DELEGATE_H_ |
6 #define SKY_SHELL_GPU_DELEGATE_H_ | 6 #define SKY_SHELL_GPU_DELEGATE_H_ |
7 | 7 |
| 8 #include "skia/ext/refptr.h" |
8 #include "ui/gfx/native_widget_types.h" | 9 #include "ui/gfx/native_widget_types.h" |
9 | 10 |
| 11 class SkPicture; |
| 12 |
10 namespace sky { | 13 namespace sky { |
11 namespace shell { | 14 namespace shell { |
12 | 15 |
13 class GPUDelegate { | 16 class GPUDelegate { |
14 public: | 17 public: |
15 virtual void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget) = 0; | 18 virtual void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget) = 0; |
16 virtual void OnOutputSurfaceDestroyed() = 0; | 19 virtual void OnOutputSurfaceDestroyed() = 0; |
| 20 virtual void Draw(skia::RefPtr<SkPicture> picture) = 0; |
17 | 21 |
18 protected: | 22 protected: |
19 virtual ~GPUDelegate(); | 23 virtual ~GPUDelegate(); |
20 }; | 24 }; |
21 | 25 |
22 } // namespace shell | 26 } // namespace shell |
23 } // namespace sky | 27 } // namespace sky |
24 | 28 |
25 #endif // SKY_SHELL_GPU_DELEGATE_H_ | 29 #endif // SKY_SHELL_GPU_DELEGATE_H_ |
OLD | NEW |