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

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: rebase 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 1320 matching lines...) Expand 10 before | Expand all | Expand 10 after
1331 params.main_frame_routing_id, 1331 params.main_frame_routing_id,
1332 params.surface_id, 1332 params.surface_id,
1333 params.session_storage_namespace_id, 1333 params.session_storage_namespace_id,
1334 params.frame_name, 1334 params.frame_name,
1335 false, 1335 false,
1336 params.swapped_out, 1336 params.swapped_out,
1337 params.proxy_routing_id, 1337 params.proxy_routing_id,
1338 params.hidden, 1338 params.hidden,
1339 params.never_visible, 1339 params.never_visible,
1340 params.next_page_id, 1340 params.next_page_id,
1341 params.screen_info); 1341 params.initial_size);
1342 } 1342 }
1343 1343
1344 GpuChannelHost* RenderThreadImpl::EstablishGpuChannelSync( 1344 GpuChannelHost* RenderThreadImpl::EstablishGpuChannelSync(
1345 CauseForGpuLaunch cause_for_gpu_launch) { 1345 CauseForGpuLaunch cause_for_gpu_launch) {
1346 TRACE_EVENT0("gpu", "RenderThreadImpl::EstablishGpuChannelSync"); 1346 TRACE_EVENT0("gpu", "RenderThreadImpl::EstablishGpuChannelSync");
1347 1347
1348 if (gpu_channel_.get()) { 1348 if (gpu_channel_.get()) {
1349 // Do nothing if we already have a GPU channel or are already 1349 // Do nothing if we already have a GPU channel or are already
1350 // establishing one. 1350 // establishing one.
1351 if (!gpu_channel_->IsLost()) 1351 if (!gpu_channel_->IsLost())
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
1586 hidden_widget_count_--; 1586 hidden_widget_count_--;
1587 1587
1588 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { 1588 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) {
1589 return; 1589 return;
1590 } 1590 }
1591 1591
1592 ScheduleIdleHandler(kLongIdleHandlerDelayMs); 1592 ScheduleIdleHandler(kLongIdleHandlerDelayMs);
1593 } 1593 }
1594 1594
1595 } // namespace content 1595 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698