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

Side by Side Diff: content/browser/gpu/gpu_process_host.h

Issue 7006006: Replace OS_LINUX ifdefs with OS_POSIX & !OS_MACOSX, TOOLKIT_USES_GTK, or (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 6 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
« no previous file with comments | « content/browser/content_browser_client.cc ('k') | content/browser/gpu/gpu_process_host.cc » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ 5 #ifndef CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_
6 #define CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ 6 #define CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <queue> 10 #include <queue>
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 // the GPU process, but haven't heard back about yet. 124 // the GPU process, but haven't heard back about yet.
125 std::queue<linked_ptr<EstablishChannelCallback> > channel_requests_; 125 std::queue<linked_ptr<EstablishChannelCallback> > channel_requests_;
126 126
127 // The pending synchronization requests we need to reply to. 127 // The pending synchronization requests we need to reply to.
128 std::queue<linked_ptr<SynchronizeCallback> > synchronize_requests_; 128 std::queue<linked_ptr<SynchronizeCallback> > synchronize_requests_;
129 129
130 // The pending create command buffer requests we need to reply to. 130 // The pending create command buffer requests we need to reply to.
131 std::queue<linked_ptr<CreateCommandBufferCallback> > 131 std::queue<linked_ptr<CreateCommandBufferCallback> >
132 create_command_buffer_requests_; 132 create_command_buffer_requests_;
133 133
134 #if defined(OS_LINUX) && !defined(TOUCH_UI) 134 #if defined(TOOLKIT_USES_GTK) && !defined(TOUCH_UI)
135 typedef std::pair<int32 /* renderer_id */, 135 typedef std::pair<int32 /* renderer_id */,
136 int32 /* render_view_id */> ViewID; 136 int32 /* render_view_id */> ViewID;
137 137
138 // Encapsulates surfaces that we lock when creating view command buffers. 138 // Encapsulates surfaces that we lock when creating view command buffers.
139 // We release this lock once the command buffer (or associated GPU process) 139 // We release this lock once the command buffer (or associated GPU process)
140 // is destroyed. This prevents the browser from destroying the surface 140 // is destroyed. This prevents the browser from destroying the surface
141 // while the GPU process is drawing to it. 141 // while the GPU process is drawing to it.
142 142
143 // Multimap is used to simulate reference counting, see comment in 143 // Multimap is used to simulate reference counting, see comment in
144 // GpuProcessHostUIShim::CreateViewCommandBuffer. 144 // GpuProcessHostUIShim::CreateViewCommandBuffer.
(...skipping 11 matching lines...) Expand all
156 // Whether we are running a GPU thread inside the browser process instead 156 // Whether we are running a GPU thread inside the browser process instead
157 // of a separate GPU process. 157 // of a separate GPU process.
158 bool in_process_; 158 bool in_process_;
159 159
160 scoped_ptr<GpuMainThread> in_process_gpu_thread_; 160 scoped_ptr<GpuMainThread> in_process_gpu_thread_;
161 161
162 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); 162 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost);
163 }; 163 };
164 164
165 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ 165 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/content_browser_client.cc ('k') | content/browser/gpu/gpu_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698