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

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

Issue 383303004: Added more detailed result codes for CreateViewCommandBuffer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Deleted commented-out code from test. Created 6 years, 5 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 // state to the scheduled state, which potentially means the channel 102 // state to the scheduled state, which potentially means the channel
102 // transitions from the unscheduled to the scheduled state. When this occurs 103 // transitions from the unscheduled to the scheduled state. When this occurs
103 // deferred IPC messaged are handled. 104 // deferred IPC messaged are handled.
104 void OnScheduled(); 105 void OnScheduled();
105 106
106 // This is called when a command buffer transitions between scheduled and 107 // This is called when a command buffer transitions between scheduled and
107 // descheduled states. When any stub is descheduled, we stop preempting 108 // descheduled states. When any stub is descheduled, we stop preempting
108 // other channels. 109 // other channels.
109 void StubSchedulingChanged(bool scheduled); 110 void StubSchedulingChanged(bool scheduled);
110 111
111 bool CreateViewCommandBuffer( 112 CreateCommandBufferResult CreateViewCommandBuffer(
112 const gfx::GLSurfaceHandle& window, 113 const gfx::GLSurfaceHandle& window,
113 int32 surface_id, 114 int32 surface_id,
114 const GPUCreateCommandBufferConfig& init_params, 115 const GPUCreateCommandBufferConfig& init_params,
115 int32 route_id); 116 int32 route_id);
116 117
117 void CreateImage( 118 void CreateImage(
118 gfx::PluginWindowHandle window, 119 gfx::PluginWindowHandle window,
119 int32 image_id, 120 int32 image_id,
120 gfx::Size* size); 121 gfx::Size* size);
121 void DeleteImage(int32 image_id); 122 void DeleteImage(int32 image_id);
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 size_t num_stubs_descheduled_; 230 size_t num_stubs_descheduled_;
230 231
231 bool allow_future_sync_points_; 232 bool allow_future_sync_points_;
232 233
233 DISALLOW_COPY_AND_ASSIGN(GpuChannel); 234 DISALLOW_COPY_AND_ASSIGN(GpuChannel);
234 }; 235 };
235 236
236 } // namespace content 237 } // namespace content
237 238
238 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ 239 #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