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

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.cc

Issue 10735010: 3D Compositing in <browser>, first draft. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Use the correct baseline Created 8 years, 4 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
OLDNEW
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 <utility> 8 #include <utility>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 process_->SurfaceUpdated(surface_id_); 235 process_->SurfaceUpdated(surface_id_);
236 } 236 }
237 237
238 void RenderWidgetHostImpl::ResetFlags() { 238 void RenderWidgetHostImpl::ResetFlags() {
239 // Must reset these to ensure that mouse move/wheel events work with a new 239 // Must reset these to ensure that mouse move/wheel events work with a new
240 // renderer. 240 // renderer.
241 mouse_move_pending_ = false; 241 mouse_move_pending_ = false;
242 next_mouse_move_.reset(); 242 next_mouse_move_.reset();
243 mouse_wheel_pending_ = false; 243 mouse_wheel_pending_ = false;
244 coalesced_mouse_wheel_events_.clear(); 244 coalesced_mouse_wheel_events_.clear();
245 245
246 // Must reset these to ensure that SelectRange works with a new renderer. 246 // Must reset these to ensure that SelectRange works with a new renderer.
247 select_range_pending_ = false; 247 select_range_pending_ = false;
248 next_selection_range_.reset(); 248 next_selection_range_.reset();
249 249
250 // Must reset these to ensure that gesture events work with a new renderer. 250 // Must reset these to ensure that gesture events work with a new renderer.
251 gesture_event_filter_->Reset(); 251 gesture_event_filter_->Reset();
252 252
253 // Must reset these to ensure that keyboard events work with a new renderer. 253 // Must reset these to ensure that keyboard events work with a new renderer.
254 key_queue_.clear(); 254 key_queue_.clear();
255 suppress_next_char_events_ = false; 255 suppress_next_char_events_ = false;
(...skipping 1762 matching lines...) Expand 10 before | Expand all | Expand 10 after
2018 // indicate that no callback is in progress (i.e. without this line 2018 // indicate that no callback is in progress (i.e. without this line
2019 // DelayedAutoResized will not get called again). 2019 // DelayedAutoResized will not get called again).
2020 new_auto_size_.SetSize(0, 0); 2020 new_auto_size_.SetSize(0, 0);
2021 if (!should_auto_resize_) 2021 if (!should_auto_resize_)
2022 return; 2022 return;
2023 2023
2024 OnRenderAutoResized(new_size); 2024 OnRenderAutoResized(new_size);
2025 } 2025 }
2026 2026
2027 } // namespace content 2027 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/gpu_message_filter.cc ('k') | content/browser/renderer_host/test_render_view_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698