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

Side by Side Diff: content/common/gpu/gpu_channel.h

Issue 440203002: Merge 283085 "Added more detailed result codes for CreateViewCom..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/2062/src/
Patch Set: Created 6 years, 4 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/common/gpu/client/gpu_channel_host.cc ('k') | content/common/gpu/gpu_channel.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) 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 #ifndef CONTENT_COMMON_GPU_GPU_CHANNEL_H_ 5 #ifndef CONTENT_COMMON_GPU_GPU_CHANNEL_H_
6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_H_ 6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 10
11 #include "base/id_map.h" 11 #include "base/id_map.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/memory/scoped_vector.h" 14 #include "base/memory/scoped_vector.h"
15 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
16 #include "base/process/process.h" 16 #include "base/process/process.h"
17 #include "build/build_config.h" 17 #include "build/build_config.h"
18 #include "content/common/gpu/gpu_command_buffer_stub.h" 18 #include "content/common/gpu/gpu_command_buffer_stub.h"
19 #include "content/common/gpu/gpu_memory_manager.h" 19 #include "content/common/gpu/gpu_memory_manager.h"
20 #include "content/common/gpu/gpu_result_codes.h"
20 #include "content/common/message_router.h" 21 #include "content/common/message_router.h"
21 #include "ipc/ipc_sync_channel.h" 22 #include "ipc/ipc_sync_channel.h"
22 #include "ui/gfx/native_widget_types.h" 23 #include "ui/gfx/native_widget_types.h"
23 #include "ui/gfx/size.h" 24 #include "ui/gfx/size.h"
24 #include "ui/gl/gl_share_group.h" 25 #include "ui/gl/gl_share_group.h"
25 #include "ui/gl/gpu_preference.h" 26 #include "ui/gl/gpu_preference.h"
26 27
27 struct GPUCreateCommandBufferConfig; 28 struct GPUCreateCommandBufferConfig;
28 29
29 namespace base { 30 namespace base {
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 // state to the scheduled state, which potentially means the channel 101 // state to the scheduled state, which potentially means the channel
101 // transitions from the unscheduled to the scheduled state. When this occurs 102 // transitions from the unscheduled to the scheduled state. When this occurs
102 // deferred IPC messaged are handled. 103 // deferred IPC messaged are handled.
103 void OnScheduled(); 104 void OnScheduled();
104 105
105 // This is called when a command buffer transitions between scheduled and 106 // This is called when a command buffer transitions between scheduled and
106 // descheduled states. When any stub is descheduled, we stop preempting 107 // descheduled states. When any stub is descheduled, we stop preempting
107 // other channels. 108 // other channels.
108 void StubSchedulingChanged(bool scheduled); 109 void StubSchedulingChanged(bool scheduled);
109 110
110 bool CreateViewCommandBuffer( 111 CreateCommandBufferResult CreateViewCommandBuffer(
111 const gfx::GLSurfaceHandle& window, 112 const gfx::GLSurfaceHandle& window,
112 int32 surface_id, 113 int32 surface_id,
113 const GPUCreateCommandBufferConfig& init_params, 114 const GPUCreateCommandBufferConfig& init_params,
114 int32 route_id); 115 int32 route_id);
115 116
116 void CreateImage( 117 void CreateImage(
117 gfx::PluginWindowHandle window, 118 gfx::PluginWindowHandle window,
118 int32 image_id, 119 int32 image_id,
119 gfx::Size* size); 120 gfx::Size* size);
120 void DeleteImage(int32 image_id); 121 void DeleteImage(int32 image_id);
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 scoped_ptr<DevToolsGpuAgent> devtools_gpu_agent_; 225 scoped_ptr<DevToolsGpuAgent> devtools_gpu_agent_;
225 226
226 size_t num_stubs_descheduled_; 227 size_t num_stubs_descheduled_;
227 228
228 DISALLOW_COPY_AND_ASSIGN(GpuChannel); 229 DISALLOW_COPY_AND_ASSIGN(GpuChannel);
229 }; 230 };
230 231
231 } // namespace content 232 } // namespace content
232 233
233 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ 234 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_
OLDNEW
« no previous file with comments | « content/common/gpu/client/gpu_channel_host.cc ('k') | content/common/gpu/gpu_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698