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

Side by Side Diff: content/renderer/render_thread_impl.cc

Issue 659093002: Pass the size to the RenderView on creation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@java_enum
Patch Set: Created 6 years, 1 month 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/renderer/render_thread_impl.h" 5 #include "content/renderer/render_thread_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
(...skipping 1323 matching lines...) Expand 10 before | Expand all | Expand 10 after
1334 params.main_frame_routing_id, 1334 params.main_frame_routing_id,
1335 params.surface_id, 1335 params.surface_id,
1336 params.session_storage_namespace_id, 1336 params.session_storage_namespace_id,
1337 params.frame_name, 1337 params.frame_name,
1338 false, 1338 false,
1339 params.swapped_out, 1339 params.swapped_out,
1340 params.proxy_routing_id, 1340 params.proxy_routing_id,
1341 params.hidden, 1341 params.hidden,
1342 params.never_visible, 1342 params.never_visible,
1343 params.next_page_id, 1343 params.next_page_id,
1344 params.screen_info); 1344 params.initial_size);
1345 } 1345 }
1346 1346
1347 GpuChannelHost* RenderThreadImpl::EstablishGpuChannelSync( 1347 GpuChannelHost* RenderThreadImpl::EstablishGpuChannelSync(
1348 CauseForGpuLaunch cause_for_gpu_launch) { 1348 CauseForGpuLaunch cause_for_gpu_launch) {
1349 TRACE_EVENT0("gpu", "RenderThreadImpl::EstablishGpuChannelSync"); 1349 TRACE_EVENT0("gpu", "RenderThreadImpl::EstablishGpuChannelSync");
1350 1350
1351 if (gpu_channel_.get()) { 1351 if (gpu_channel_.get()) {
1352 // Do nothing if we already have a GPU channel or are already 1352 // Do nothing if we already have a GPU channel or are already
1353 // establishing one. 1353 // establishing one.
1354 if (!gpu_channel_->IsLost()) 1354 if (!gpu_channel_->IsLost())
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
1589 hidden_widget_count_--; 1589 hidden_widget_count_--;
1590 1590
1591 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { 1591 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) {
1592 return; 1592 return;
1593 } 1593 }
1594 1594
1595 ScheduleIdleHandler(kLongIdleHandlerDelayMs); 1595 ScheduleIdleHandler(kLongIdleHandlerDelayMs);
1596 } 1596 }
1597 1597
1598 } // namespace content 1598 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698