OLD | NEW |
---|---|
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/renderer/render_widget.h" | 5 #include "chrome/renderer/render_widget.h" |
6 | 6 |
7 #include "app/surface/transport_dib.h" | 7 #include "app/surface/transport_dib.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
559 | 559 |
560 for (size_t i = 0; i < copy_rects.size(); ++i) | 560 for (size_t i = 0; i < copy_rects.size(); ++i) |
561 PaintRect(copy_rects[i], bounds.origin(), canvas.get()); | 561 PaintRect(copy_rects[i], bounds.origin(), canvas.get()); |
562 | 562 |
563 dib_id = current_paint_buf_->id(); | 563 dib_id = current_paint_buf_->id(); |
564 } else { // Accelerated compositing path | 564 } else { // Accelerated compositing path |
565 // Begin painting. | 565 // Begin painting. |
566 webwidget_->composite(false); | 566 webwidget_->composite(false); |
567 } | 567 } |
568 | 568 |
569 webwidget_->clearCurrentAnimationTime(); | |
darin (slow to review)
2011/01/06 05:52:29
what about other places where we call WebWidget::p
| |
570 | |
569 // sending an ack to browser process that the paint is complete... | 571 // sending an ack to browser process that the paint is complete... |
570 ViewHostMsg_UpdateRect_Params params; | 572 ViewHostMsg_UpdateRect_Params params; |
571 params.bitmap = dib_id; | 573 params.bitmap = dib_id; |
572 params.bitmap_rect = bounds; | 574 params.bitmap_rect = bounds; |
573 params.dx = update.scroll_delta.x(); | 575 params.dx = update.scroll_delta.x(); |
574 params.dy = update.scroll_delta.y(); | 576 params.dy = update.scroll_delta.y(); |
575 if (is_accelerated_compositing_active_) { | 577 if (is_accelerated_compositing_active_) { |
576 // If painting is done via the gpu process then we clear out all damage | 578 // If painting is done via the gpu process then we clear out all damage |
577 // rects to save the browser process from doing unecessary work. | 579 // rects to save the browser process from doing unecessary work. |
578 params.scroll_rect = gfx::Rect(); | 580 params.scroll_rect = gfx::Rect(); |
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1021 | 1023 |
1022 void RenderWidget::CleanupWindowInPluginMoves(gfx::PluginWindowHandle window) { | 1024 void RenderWidget::CleanupWindowInPluginMoves(gfx::PluginWindowHandle window) { |
1023 for (WebPluginGeometryVector::iterator i = plugin_window_moves_.begin(); | 1025 for (WebPluginGeometryVector::iterator i = plugin_window_moves_.begin(); |
1024 i != plugin_window_moves_.end(); ++i) { | 1026 i != plugin_window_moves_.end(); ++i) { |
1025 if (i->window == window) { | 1027 if (i->window == window) { |
1026 plugin_window_moves_.erase(i); | 1028 plugin_window_moves_.erase(i); |
1027 break; | 1029 break; |
1028 } | 1030 } |
1029 } | 1031 } |
1030 } | 1032 } |
OLD | NEW |