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

Unified Diff: sky/shell/gpu/rasterizer.h

Issue 880443003: Plumb resize notifications around sky/shell (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: git cl format 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 side-by-side diff with in-line comments
Download patch
Index: sky/shell/gpu/rasterizer.h
diff --git a/sky/shell/gpu/rasterizer.h b/sky/shell/gpu/rasterizer.h
index 302e38d9e3c7b28ca7e21e6f164bdab1d382ff4b..3bb253dd79ef114b3caf142de209c81eb2e77c33 100644
--- a/sky/shell/gpu/rasterizer.h
+++ b/sky/shell/gpu/rasterizer.h
@@ -8,6 +8,7 @@
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
#include "skia/ext/refptr.h"
+#include "sky/shell/gpu_delegate.h"
#include "ui/gfx/geometry/size.h"
#include "ui/gfx/native_widget_types.h"
@@ -24,14 +25,16 @@ namespace shell {
class GaneshContext;
class GaneshSurface;
-class Rasterizer {
+class Rasterizer : public GPUDelegate {
public:
explicit Rasterizer();
~Rasterizer();
base::WeakPtr<Rasterizer> GetWeakPtr();
- void Init(gfx::AcceleratedWidget widget);
+ void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget) override;
+ void OnDestroyed() override;
eseidel 2015/02/05 05:57:28 Isn't the pattern typically OnGPUDestroyed() so th
abarth-chromium 2015/02/05 06:16:23 Good idea.
abarth-chromium 2015/02/05 06:16:23 Good idea.
+
void Draw(skia::RefPtr<SkPicture> picture);
private:
« no previous file with comments | « sky/shell/BUILD.gn ('k') | sky/shell/gpu/rasterizer.cc » ('j') | sky/shell/gpu_delegate.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698