mirror of
https://github.com/encounter/engine.git
synced 2026-03-30 11:09:55 -07:00
Fix build after recent compositor changes
This commit is contained in:
@@ -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>>
|
||||
|
||||
Reference in New Issue
Block a user