Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(587)

Side by Side Diff: sky/shell/gpu_delegate.h

Issue 936883002: Connect Sky and Ganesh in SkyShell (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Address review comments Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/shell/gpu/rasterizer.cc ('k') | sky/shell/java_service_provider.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_
OLDNEW
« no previous file with comments | « sky/shell/gpu/rasterizer.cc ('k') | sky/shell/java_service_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698