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

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

Issue 441623004: [DevTools] Force page redraw when enabling screencast. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « content/browser/devtools/renderer_overrides_handler.cc ('k') | content/common/view_messages.h » ('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) 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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 input_method_active_(false), 179 input_method_active_(false),
180 text_direction_updated_(false), 180 text_direction_updated_(false),
181 text_direction_(blink::WebTextDirectionLeftToRight), 181 text_direction_(blink::WebTextDirectionLeftToRight),
182 text_direction_canceled_(false), 182 text_direction_canceled_(false),
183 suppress_next_char_events_(false), 183 suppress_next_char_events_(false),
184 pending_mouse_lock_request_(false), 184 pending_mouse_lock_request_(false),
185 allow_privileged_mouse_lock_(false), 185 allow_privileged_mouse_lock_(false),
186 has_touch_handler_(false), 186 has_touch_handler_(false),
187 weak_factory_(this), 187 weak_factory_(this),
188 last_input_number_(static_cast<int64>(GetProcess()->GetID()) << 32), 188 last_input_number_(static_cast<int64>(GetProcess()->GetID()) << 32),
189 next_browser_snapshot_id_(0) { 189 next_browser_snapshot_id_(1) {
190 CHECK(delegate_); 190 CHECK(delegate_);
191 if (routing_id_ == MSG_ROUTING_NONE) { 191 if (routing_id_ == MSG_ROUTING_NONE) {
192 routing_id_ = process_->GetNextRoutingID(); 192 routing_id_ = process_->GetNextRoutingID();
193 surface_id_ = GpuSurfaceTracker::Get()->AddSurfaceForRenderer( 193 surface_id_ = GpuSurfaceTracker::Get()->AddSurfaceForRenderer(
194 process_->GetID(), 194 process_->GetID(),
195 routing_id_); 195 routing_id_);
196 } else { 196 } else {
197 // TODO(piman): This is a O(N) lookup, where we could forward the 197 // TODO(piman): This is a O(N) lookup, where we could forward the
198 // information from the RenderWidgetHelper. The problem is that doing so 198 // information from the RenderWidgetHelper. The problem is that doing so
199 // currently leaks outside of content all the way to chrome classes, and 199 // currently leaks outside of content all the way to chrome classes, and
(...skipping 2102 matching lines...) Expand 10 before | Expand all | Expand 10 after
2302 } 2302 }
2303 #endif 2303 #endif
2304 2304
2305 SkColorType RenderWidgetHostImpl::PreferredReadbackFormat() { 2305 SkColorType RenderWidgetHostImpl::PreferredReadbackFormat() {
2306 if (view_) 2306 if (view_)
2307 return view_->PreferredReadbackFormat(); 2307 return view_->PreferredReadbackFormat();
2308 return kN32_SkColorType; 2308 return kN32_SkColorType;
2309 } 2309 }
2310 2310
2311 } // namespace content 2311 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/devtools/renderer_overrides_handler.cc ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698