Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(285)

Side by Side Diff: chrome/renderer/render_widget.cc

Issue 5962018: Chromium support for webkitAnimationTime property (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/renderer/render_widget_fullscreen_pepper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/render_widget_fullscreen_pepper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698