 Chromium Code Reviews
 Chromium Code Reviews Issue 2495373003:
  Match html canvas which is transferred to OffscreenCanvas to CSS style  (Closed)
    
  
    Issue 2495373003:
  Match html canvas which is transferred to OffscreenCanvas to CSS style  (Closed) 
  | Index: ui/compositor/layer.cc | 
| diff --git a/ui/compositor/layer.cc b/ui/compositor/layer.cc | 
| index 03c6301c4903bcc8bb8f18f21d97f9955d1a215d..2e4083c7e31ed644e928c86001e274866fb4d0df 100644 | 
| --- a/ui/compositor/layer.cc | 
| +++ b/ui/compositor/layer.cc | 
| @@ -668,7 +668,7 @@ void Layer::SetShowSurface( | 
| scoped_refptr<cc::SurfaceLayer> new_layer = | 
| cc::SurfaceLayer::Create(satisfy_callback, require_callback); | 
| - new_layer->SetSurfaceId(surface_id, scale, surface_size); | 
| + new_layer->SetSurfaceId(surface_id, scale, surface_size, false); | 
| 
danakj
2016/12/15 16:13:14
use a temp var or a comment to say the name of the
 | 
| SwitchToLayer(new_layer); | 
| surface_layer_ = new_layer; |