| Index: ui/ozone/platform/dri/dri_surface_factory.cc
|
| diff --git a/ui/ozone/platform/dri/dri_surface_factory.cc b/ui/ozone/platform/dri/dri_surface_factory.cc
|
| index 93fc4b4f670766cf0a260ad9816b039c69ffee6c..71cb4ce90f52fcb80ccf7d547e98eaf4059a06de 100644
|
| --- a/ui/ozone/platform/dri/dri_surface_factory.cc
|
| +++ b/ui/ozone/platform/dri/dri_surface_factory.cc
|
| @@ -96,7 +96,8 @@ scoped_ptr<gfx::VSyncProvider> DriSurfaceAdapter::CreateVSyncProvider() {
|
| }
|
|
|
| void DriSurfaceAdapter::UpdateNativeSurface(const gfx::Rect& damage) {
|
| - SkCanvas* canvas = controller_->surface()->GetDrawableForWidget();
|
| + SkCanvas* canvas = static_cast<DriSurface*>(controller_->surface())
|
| + ->GetDrawableForWidget();
|
|
|
| // The DriSurface is double buffered, so the current back buffer is
|
| // missing the previous update. Expand damage region.
|
|
|