| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "platform/graphics/OffscreenCanvasPlaceholder.h" | 5 #include "platform/graphics/OffscreenCanvasPlaceholder.h" |
| 6 | 6 |
| 7 #include "platform/CrossThreadFunctional.h" | 7 #include "platform/CrossThreadFunctional.h" |
| 8 #include "platform/WebTaskRunner.h" | 8 #include "platform/WebTaskRunner.h" |
| 9 #include "platform/graphics/OffscreenCanvasFrameDispatcher.h" | 9 #include "platform/graphics/OffscreenCanvasFrameDispatcher.h" |
| 10 #include "platform/graphics/StaticBitmapImage.h" | 10 #include "platform/graphics/StaticBitmapImage.h" |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 bool OffscreenCanvasPlaceholder::PostSetSuspendAnimationToOffscreenCanvasThread( | 144 bool OffscreenCanvasPlaceholder::PostSetSuspendAnimationToOffscreenCanvasThread( |
| 145 bool suspend) { | 145 bool suspend) { |
| 146 if (!frame_dispatcher_task_runner_) | 146 if (!frame_dispatcher_task_runner_) |
| 147 return false; | 147 return false; |
| 148 frame_dispatcher_task_runner_->PostTask( | 148 frame_dispatcher_task_runner_->PostTask( |
| 149 BLINK_FROM_HERE, | 149 BLINK_FROM_HERE, |
| 150 CrossThreadBind(SetSuspendAnimation, frame_dispatcher_, suspend)); | 150 CrossThreadBind(SetSuspendAnimation, frame_dispatcher_, suspend)); |
| 151 return true; | 151 return true; |
| 152 } | 152 } |
| 153 | 153 |
| 154 } // blink | 154 } // namespace blink |
| OLD | NEW |