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

Unified Diff: sky/viewer/document_view.h

Issue 854303002: Sky should use an SkPicture when drawing (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: fixes Created 5 years, 11 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/viewer/document_view.h
diff --git a/sky/viewer/document_view.h b/sky/viewer/document_view.h
index 1c80db9f69504a159099257ed9a1bd05ef209fef..a5151b52ace1bcd531f282c2acdd9ef8b8a618b0 100644
--- a/sky/viewer/document_view.h
+++ b/sky/viewer/document_view.h
@@ -35,6 +35,8 @@ class InspectorBackendMojo;
namespace sky {
class InspectorHostImpl;
+class Rasterizer;
+class RasterizerBitmap;
class ScriptRunner;
class Layer;
class LayerHost;
@@ -118,6 +120,7 @@ class DocumentView : public blink::ServiceProvider,
void Load(mojo::URLResponsePtr response);
float GetDevicePixelRatio() const;
+ scoped_ptr<Rasterizer> CreateRasterizer();
mojo::URLResponsePtr response_;
mojo::ServiceProviderImpl exported_services_;
@@ -130,12 +133,14 @@ class DocumentView : public blink::ServiceProvider,
InspectorServiceFactory inspector_service_factory_;
scoped_ptr<LayerHost> layer_host_;
scoped_refptr<Layer> root_layer_;
+ RasterizerBitmap* bitmap_rasterizer_; // Used for pixel tests.
scoped_ptr<ScriptRunner> script_runner_;
scoped_ptr<InspectorHostImpl> inspector_host_;
scoped_ptr<inspector::InspectorBackendMojo> inspector_backend_;
- base::WeakPtrFactory<DocumentView> weak_factory_;
int debugger_id_;
+ base::WeakPtrFactory<DocumentView> weak_factory_;
+
DISALLOW_COPY_AND_ASSIGN(DocumentView);
};
« no previous file with comments | « sky/viewer/BUILD.gn ('k') | sky/viewer/document_view.cc » ('j') | sky/viewer/document_view.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698