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

Side by Side Diff: chrome/browser/gpu_process_host_ui_shim.cc

Issue 4399003: Deleted code associated with --enable-gpu-rendering and... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/gpu_process_host_ui_shim.h ('k') | chrome/browser/renderer_host/backing_store.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/browser/gpu_process_host_ui_shim.h" 5 #include "chrome/browser/gpu_process_host_ui_shim.h"
6 6
7 #include "chrome/browser/browser_thread.h" 7 #include "chrome/browser/browser_thread.h"
8 #include "chrome/browser/gpu_process_host.h" 8 #include "chrome/browser/gpu_process_host.h"
9 #include "chrome/common/gpu_messages.h" 9 #include "chrome/common/gpu_messages.h"
10 10
(...skipping 18 matching lines...) Expand all
29 } 29 }
30 30
31 GpuProcessHostUIShim::~GpuProcessHostUIShim() { 31 GpuProcessHostUIShim::~GpuProcessHostUIShim() {
32 } 32 }
33 33
34 // static 34 // static
35 GpuProcessHostUIShim* GpuProcessHostUIShim::Get() { 35 GpuProcessHostUIShim* GpuProcessHostUIShim::Get() {
36 return Singleton<GpuProcessHostUIShim>::get(); 36 return Singleton<GpuProcessHostUIShim>::get();
37 } 37 }
38 38
39 int32 GpuProcessHostUIShim::NewRenderWidgetHostView(
40 GpuNativeWindowHandle parent) {
41 int32 routing_id = GetNextRoutingId();
42 Send(new GpuMsg_NewRenderWidgetHostView(parent, routing_id));
43 return routing_id;
44 }
45
46 bool GpuProcessHostUIShim::Send(IPC::Message* msg) { 39 bool GpuProcessHostUIShim::Send(IPC::Message* msg) {
47 BrowserThread::PostTask(BrowserThread::IO, 40 BrowserThread::PostTask(BrowserThread::IO,
48 FROM_HERE, 41 FROM_HERE,
49 new SendOnIOThreadTask(msg)); 42 new SendOnIOThreadTask(msg));
50 return true; 43 return true;
51 } 44 }
52 45
53 int32 GpuProcessHostUIShim::GetNextRoutingId() { 46 int32 GpuProcessHostUIShim::GetNextRoutingId() {
54 return ++last_routing_id_; 47 return ++last_routing_id_;
55 } 48 }
(...skipping 11 matching lines...) Expand all
67 router_.RouteMessage(message); 60 router_.RouteMessage(message);
68 } 61 }
69 62
70 void GpuProcessHostUIShim::CollectGraphicsInfoAsynchronously() { 63 void GpuProcessHostUIShim::CollectGraphicsInfoAsynchronously() {
71 DCHECK(!BrowserThread::CurrentlyOn(BrowserThread::IO)); 64 DCHECK(!BrowserThread::CurrentlyOn(BrowserThread::IO));
72 BrowserThread::PostTask( 65 BrowserThread::PostTask(
73 BrowserThread::IO, 66 BrowserThread::IO,
74 FROM_HERE, 67 FROM_HERE,
75 new SendOnIOThreadTask(new GpuMsg_CollectGraphicsInfo())); 68 new SendOnIOThreadTask(new GpuMsg_CollectGraphicsInfo()));
76 } 69 }
OLDNEW
« no previous file with comments | « chrome/browser/gpu_process_host_ui_shim.h ('k') | chrome/browser/renderer_host/backing_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698