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

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

Issue 331723003: gpu: Remove Create/DeleteImage IPC by adding an X11_PIXMAP_BUFFER GpuMemoryBuffer type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
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
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 // descheduled states. When any stub is descheduled, we stop preempting 106 // descheduled states. When any stub is descheduled, we stop preempting
107 // other channels. 107 // other channels.
108 void StubSchedulingChanged(bool scheduled); 108 void StubSchedulingChanged(bool scheduled);
109 109
110 bool CreateViewCommandBuffer( 110 bool CreateViewCommandBuffer(
111 const gfx::GLSurfaceHandle& window, 111 const gfx::GLSurfaceHandle& window,
112 int32 surface_id, 112 int32 surface_id,
113 const GPUCreateCommandBufferConfig& init_params, 113 const GPUCreateCommandBufferConfig& init_params,
114 int32 route_id); 114 int32 route_id);
115 115
116 void CreateImage( 116 bool CreateImage(
117 gfx::PluginWindowHandle window, 117 const gfx::GpuMemoryBufferHandle& handle,
118 int32 image_id, 118 const gfx::Size& size,
119 gfx::Size* size); 119 unsigned internalformat,
120 int32 image_id);
120 void DeleteImage(int32 image_id); 121 void DeleteImage(int32 image_id);
121 122
122 gfx::GLShareGroup* share_group() const { return share_group_.get(); } 123 gfx::GLShareGroup* share_group() const { return share_group_.get(); }
123 124
124 GpuCommandBufferStub* LookupCommandBuffer(int32 route_id); 125 GpuCommandBufferStub* LookupCommandBuffer(int32 route_id);
125 126
126 void LoseAllContexts(); 127 void LoseAllContexts();
127 void MarkAllContextsLost(); 128 void MarkAllContextsLost();
128 129
129 // Called to add a listener for a particular message routing ID. 130 // Called to add a listener for a particular message routing ID.
(...skipping 94 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

Powered by Google App Engine
This is Rietveld 408576698