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_process_host_impl.cc

Issue 9194005: gpu: reference target surfaces through a globally unique surface id. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix more tests Created 8 years, 11 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 | 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 #if defined(OS_WIN) 10 #if defined(OS_WIN)
(...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after
826 cached_dibs_cleaner_.Reset(); 826 cached_dibs_cleaner_.Reset();
827 return dib; 827 return dib;
828 } 828 }
829 829
830 void RenderProcessHostImpl::ClearTransportDIBCache() { 830 void RenderProcessHostImpl::ClearTransportDIBCache() {
831 STLDeleteContainerPairSecondPointers( 831 STLDeleteContainerPairSecondPointers(
832 cached_dibs_.begin(), cached_dibs_.end()); 832 cached_dibs_.begin(), cached_dibs_.end());
833 cached_dibs_.clear(); 833 cached_dibs_.clear();
834 } 834 }
835 835
836 void RenderProcessHostImpl::SetCompositingSurface(
837 int render_widget_id,
838 gfx::PluginWindowHandle compositing_surface) {
839 widget_helper_->SetCompositingSurface(render_widget_id, compositing_surface);
840 }
841
842 bool RenderProcessHostImpl::Send(IPC::Message* msg) { 836 bool RenderProcessHostImpl::Send(IPC::Message* msg) {
843 if (!channel_.get()) { 837 if (!channel_.get()) {
844 if (!is_initialized_) { 838 if (!is_initialized_) {
845 queued_messages_.push(msg); 839 queued_messages_.push(msg);
846 return true; 840 return true;
847 } else { 841 } else {
848 delete msg; 842 delete msg;
849 return false; 843 return false;
850 } 844 }
851 } 845 }
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
1301 void RenderProcessHostImpl::OnRevealFolderInOS(const FilePath& path) { 1295 void RenderProcessHostImpl::OnRevealFolderInOS(const FilePath& path) {
1302 // Only honor the request if appropriate persmissions are granted. 1296 // Only honor the request if appropriate persmissions are granted.
1303 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(GetID(), path)) 1297 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(GetID(), path))
1304 content::GetContentClient()->browser()->OpenItem(path); 1298 content::GetContentClient()->browser()->OpenItem(path);
1305 } 1299 }
1306 1300
1307 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) { 1301 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) {
1308 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> 1302 content::GetContentClient()->browser()->GetMHTMLGenerationManager()->
1309 MHTMLGenerated(job_id, data_size); 1303 MHTMLGenerated(job_id, data_size);
1310 } 1304 }
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.h ('k') | content/browser/renderer_host/render_view_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698