| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/browser/renderer_host/render_widget_host_impl.h" | 5 #include "content/browser/renderer_host/render_widget_host_impl.h" |
| 6 | 6 |
| 7 #include <math.h> | 7 #include <math.h> |
| 8 #include <set> | 8 #include <set> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 1613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1624 const TimeTicks& paint_start) { | 1624 const TimeTicks& paint_start) { |
| 1625 TRACE_EVENT0("renderer_host", "RenderWidgetHostImpl::DidUpdateBackingStore"); | 1625 TRACE_EVENT0("renderer_host", "RenderWidgetHostImpl::DidUpdateBackingStore"); |
| 1626 TimeTicks update_start = TimeTicks::Now(); | 1626 TimeTicks update_start = TimeTicks::Now(); |
| 1627 | 1627 |
| 1628 // Move the plugins if the view hasn't already been destroyed. Plugin moves | 1628 // Move the plugins if the view hasn't already been destroyed. Plugin moves |
| 1629 // will not be re-issued, so must move them now, regardless of whether we | 1629 // will not be re-issued, so must move them now, regardless of whether we |
| 1630 // paint or not. MovePluginWindows attempts to move the plugin windows and | 1630 // paint or not. MovePluginWindows attempts to move the plugin windows and |
| 1631 // in the process could dispatch other window messages which could cause the | 1631 // in the process could dispatch other window messages which could cause the |
| 1632 // view to be destroyed. | 1632 // view to be destroyed. |
| 1633 if (view_) | 1633 if (view_) |
| 1634 view_->MovePluginWindows(params.scroll_offset, params.plugin_window_moves); | 1634 view_->MovePluginWindows(params.plugin_window_moves); |
| 1635 | 1635 |
| 1636 NotificationService::current()->Notify( | 1636 NotificationService::current()->Notify( |
| 1637 NOTIFICATION_RENDER_WIDGET_HOST_DID_UPDATE_BACKING_STORE, | 1637 NOTIFICATION_RENDER_WIDGET_HOST_DID_UPDATE_BACKING_STORE, |
| 1638 Source<RenderWidgetHost>(this), | 1638 Source<RenderWidgetHost>(this), |
| 1639 NotificationService::NoDetails()); | 1639 NotificationService::NoDetails()); |
| 1640 | 1640 |
| 1641 // We don't need to update the view if the view is hidden. We must do this | 1641 // We don't need to update the view if the view is hidden. We must do this |
| 1642 // early return after the ACK is sent, however, or the renderer will not send | 1642 // early return after the ACK is sent, however, or the renderer will not send |
| 1643 // us more data. | 1643 // us more data. |
| 1644 if (is_hidden_) | 1644 if (is_hidden_) |
| (...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2393 } | 2393 } |
| 2394 } | 2394 } |
| 2395 | 2395 |
| 2396 SkBitmap::Config RenderWidgetHostImpl::PreferredReadbackFormat() { | 2396 SkBitmap::Config RenderWidgetHostImpl::PreferredReadbackFormat() { |
| 2397 if (view_) | 2397 if (view_) |
| 2398 return view_->PreferredReadbackFormat(); | 2398 return view_->PreferredReadbackFormat(); |
| 2399 return SkBitmap::kARGB_8888_Config; | 2399 return SkBitmap::kARGB_8888_Config; |
| 2400 } | 2400 } |
| 2401 | 2401 |
| 2402 } // namespace content | 2402 } // namespace content |
| OLD | NEW |