提交 d9cde931 编写于 作者: A Adam Barth

Merge pull request #1130 from abarth/fix_build

Fix build after recent compositor changes
......@@ -224,8 +224,9 @@ void DocumentView::OnSurfaceIdAvailable(mojo::SurfaceIdPtr surface_id) {
void DocumentView::PaintContents(SkCanvas* canvas, const gfx::Rect& clip) {
if (current_layer_tree_) {
compositor::PaintContext context(picture_rasterizer_, nullptr, canvas);
current_layer_tree_->root_layer()->Paint(context);
compositor::PaintContext::ScopedFrame frame =
paint_context_.AcquireFrame(*canvas, nullptr);
current_layer_tree_->root_layer()->Paint(frame);
}
}
......
......@@ -131,7 +131,7 @@ class DocumentView : public blink::ServiceProvider,
scoped_ptr<LayerHost> layer_host_;
scoped_refptr<TextureLayer> root_layer_;
std::unique_ptr<compositor::LayerTree> current_layer_tree_; // TODO(abarth): Integrate //sky/compositor and //services/sky/compositor.
compositor::PictureRasterzier picture_rasterizer_;
compositor::PaintContext paint_context_;
RasterizerBitmap* bitmap_rasterizer_; // Used for pixel tests.
mojo::ServiceRegistryPtr service_registry_;
scoped_ptr<mojo::StrongBinding<mojo::ServiceProvider>>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册