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

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

Issue 654223006: Cleanup GpuMemoryBuffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/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 1228 matching lines...) Expand 10 before | Expand all | Expand 10 after
1239 init_params, 1239 init_params,
1240 route_id, 1240 route_id,
1241 &result); 1241 &result);
1242 1242
1243 // Allow calling this from the compositor thread. 1243 // Allow calling this from the compositor thread.
1244 thread_safe_sender()->Send(message); 1244 thread_safe_sender()->Send(message);
1245 1245
1246 return result; 1246 return result;
1247 } 1247 }
1248 1248
1249 void RenderThreadImpl::WaitForPendingGpuMemoryBufferUsageToComplete(
1250 const base::Closure& callback) {
1251 GpuChannelHost* host = GetGpuChannel();
1252 if (!host) {
1253 callback.Run();
1254 return;
1255 }
1256
1257 host->WaitForPendingGpuMemoryBufferUsageToComplete(callback);
1258 }
1259
1249 void RenderThreadImpl::DoNotSuspendWebKitSharedTimer() { 1260 void RenderThreadImpl::DoNotSuspendWebKitSharedTimer() {
1250 suspend_webkit_shared_timer_ = false; 1261 suspend_webkit_shared_timer_ = false;
1251 } 1262 }
1252 1263
1253 void RenderThreadImpl::DoNotNotifyWebKitOfModalLoop() { 1264 void RenderThreadImpl::DoNotNotifyWebKitOfModalLoop() {
1254 notify_webkit_of_modal_loop_ = false; 1265 notify_webkit_of_modal_loop_ = false;
1255 } 1266 }
1256 1267
1257 bool RenderThreadImpl::OnControlMessageReceived(const IPC::Message& msg) { 1268 bool RenderThreadImpl::OnControlMessageReceived(const IPC::Message& msg) {
1258 ObserverListBase<RenderProcessObserver>::Iterator it(observers_); 1269 ObserverListBase<RenderProcessObserver>::Iterator it(observers_);
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
1581 hidden_widget_count_--; 1592 hidden_widget_count_--;
1582 1593
1583 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { 1594 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) {
1584 return; 1595 return;
1585 } 1596 }
1586 1597
1587 ScheduleIdleHandler(kLongIdleHandlerDelayMs); 1598 ScheduleIdleHandler(kLongIdleHandlerDelayMs);
1588 } 1599 }
1589 1600
1590 } // namespace content 1601 } // namespace content
OLDNEW
« content/common/gpu/client/gpu_channel_host.cc ('K') | « content/renderer/render_thread_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698