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

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

Issue 111063003: Aura: Don't create GL context for CreateSharedSurfaceHandle() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
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 // Represents the browser side of the browser <--> renderer communication 5 // Represents the browser side of the browser <--> renderer communication
6 // channel. There will be one RenderProcessHost per renderer process. 6 // channel. There will be one RenderProcessHost per renderer process.
7 7
8 #include "content/browser/renderer_host/render_process_host_impl.h" 8 #include "content/browser/renderer_host/render_process_host_impl.h"
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 1445 matching lines...) Expand 10 before | Expand all | Expand 10 after
1456 } 1456 }
1457 1457
1458 bool RenderProcessHostImpl::SuddenTerminationAllowed() const { 1458 bool RenderProcessHostImpl::SuddenTerminationAllowed() const {
1459 return sudden_termination_allowed_; 1459 return sudden_termination_allowed_;
1460 } 1460 }
1461 1461
1462 base::TimeDelta RenderProcessHostImpl::GetChildProcessIdleTime() const { 1462 base::TimeDelta RenderProcessHostImpl::GetChildProcessIdleTime() const {
1463 return base::TimeTicks::Now() - child_process_activity_time_; 1463 return base::TimeTicks::Now() - child_process_activity_time_;
1464 } 1464 }
1465 1465
1466 void RenderProcessHostImpl::SurfaceUpdated(int32 surface_id) {
1467 if (!gpu_message_filter_)
1468 return;
1469 BrowserThread::PostTask(BrowserThread::IO, FROM_HERE, base::Bind(
1470 &GpuMessageFilter::SurfaceUpdated,
1471 gpu_message_filter_,
1472 surface_id));
1473 }
1474
1475 void RenderProcessHostImpl::ResumeRequestsForView(int route_id) { 1466 void RenderProcessHostImpl::ResumeRequestsForView(int route_id) {
1476 widget_helper_->ResumeRequestsForView(route_id); 1467 widget_helper_->ResumeRequestsForView(route_id);
1477 } 1468 }
1478 1469
1479 IPC::ChannelProxy* RenderProcessHostImpl::GetChannel() { 1470 IPC::ChannelProxy* RenderProcessHostImpl::GetChannel() {
1480 return channel_.get(); 1471 return channel_.get();
1481 } 1472 }
1482 1473
1483 void RenderProcessHostImpl::AddFilter(BrowserMessageFilter* filter) { 1474 void RenderProcessHostImpl::AddFilter(BrowserMessageFilter* filter) {
1484 channel_->AddFilter(filter->GetFilter()); 1475 channel_->AddFilter(filter->GetFilter());
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
1904 // Skip widgets in other processes. 1895 // Skip widgets in other processes.
1905 if (widget->GetProcess()->GetID() != GetID()) 1896 if (widget->GetProcess()->GetID() != GetID())
1906 continue; 1897 continue;
1907 1898
1908 RenderViewHost* rvh = RenderViewHost::From(widget); 1899 RenderViewHost* rvh = RenderViewHost::From(widget);
1909 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); 1900 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences());
1910 } 1901 }
1911 } 1902 }
1912 1903
1913 } // namespace content 1904 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698