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

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

Issue 1472063007: mustash: enable GPU Compositing in renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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_view_host_impl.h" 5 #include "content/browser/renderer_host/render_view_host_impl.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/debug/stack_trace.h"
13
12 #include "base/callback.h" 14 #include "base/callback.h"
13 #include "base/command_line.h" 15 #include "base/command_line.h"
14 #include "base/i18n/rtl.h" 16 #include "base/i18n/rtl.h"
15 #include "base/json/json_reader.h" 17 #include "base/json/json_reader.h"
16 #include "base/message_loop/message_loop.h" 18 #include "base/message_loop/message_loop.h"
17 #include "base/metrics/field_trial.h" 19 #include "base/metrics/field_trial.h"
18 #include "base/metrics/histogram.h" 20 #include "base/metrics/histogram.h"
19 #include "base/stl_util.h" 21 #include "base/stl_util.h"
20 #include "base/strings/string_util.h" 22 #include "base/strings/string_util.h"
21 #include "base/strings/utf_string_conversions.h" 23 #include "base/strings/utf_string_conversions.h"
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 SiteInstanceImpl* RenderViewHostImpl::GetSiteInstance() const { 285 SiteInstanceImpl* RenderViewHostImpl::GetSiteInstance() const {
284 return instance_.get(); 286 return instance_.get();
285 } 287 }
286 288
287 bool RenderViewHostImpl::CreateRenderView( 289 bool RenderViewHostImpl::CreateRenderView(
288 int opener_frame_route_id, 290 int opener_frame_route_id,
289 int proxy_route_id, 291 int proxy_route_id,
290 int32 max_page_id, 292 int32 max_page_id,
291 const FrameReplicationState& replicated_frame_state, 293 const FrameReplicationState& replicated_frame_state,
292 bool window_was_created_with_opener) { 294 bool window_was_created_with_opener) {
295 // base::debug::StackTrace().Print();
293 TRACE_EVENT0("renderer_host,navigation", 296 TRACE_EVENT0("renderer_host,navigation",
294 "RenderViewHostImpl::CreateRenderView"); 297 "RenderViewHostImpl::CreateRenderView");
295 DCHECK(!IsRenderViewLive()) << "Creating view twice"; 298 DCHECK(!IsRenderViewLive()) << "Creating view twice";
296 299
297 // The process may (if we're sharing a process with another host that already 300 // The process may (if we're sharing a process with another host that already
298 // initialized it) or may not (we have our own process or the old process 301 // initialized it) or may not (we have our own process or the old process
299 // crashed) have been initialized. Calling Init multiple times will be 302 // crashed) have been initialized. Calling Init multiple times will be
300 // ignored, so this is safe. 303 // ignored, so this is safe.
301 if (!GetProcess()->Init()) 304 if (!GetProcess()->Init())
302 return false; 305 return false;
(...skipping 1105 matching lines...) Expand 10 before | Expand all | Expand 10 after
1408 } else { 1411 } else {
1409 render_view_ready_on_process_launch_ = true; 1412 render_view_ready_on_process_launch_ = true;
1410 } 1413 }
1411 } 1414 }
1412 1415
1413 void RenderViewHostImpl::RenderViewReady() { 1416 void RenderViewHostImpl::RenderViewReady() {
1414 delegate_->RenderViewReady(this); 1417 delegate_->RenderViewReady(this);
1415 } 1418 }
1416 1419
1417 } // namespace content 1420 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698