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

Side by Side Diff: content/common/gpu/gpu_command_buffer_stub.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: rebase 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
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_COMMAND_BUFFER_STUB_H_ 5 #ifndef CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
6 #define CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 6 #define CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 14 matching lines...) Expand all
25 #include "media/base/video_decoder_config.h" 25 #include "media/base/video_decoder_config.h"
26 #include "ui/events/latency_info.h" 26 #include "ui/events/latency_info.h"
27 #include "ui/gfx/gpu_memory_buffer.h" 27 #include "ui/gfx/gpu_memory_buffer.h"
28 #include "ui/gfx/native_widget_types.h" 28 #include "ui/gfx/native_widget_types.h"
29 #include "ui/gfx/size.h" 29 #include "ui/gfx/size.h"
30 #include "ui/gl/gl_surface.h" 30 #include "ui/gl/gl_surface.h"
31 #include "ui/gl/gpu_preference.h" 31 #include "ui/gl/gpu_preference.h"
32 #include "url/gurl.h" 32 #include "url/gurl.h"
33 33
34 namespace gpu { 34 namespace gpu {
35 class GpuControlService;
36 struct Mailbox; 35 struct Mailbox;
37 namespace gles2 { 36 namespace gles2 {
38 class ImageManager;
39 class MailboxManager; 37 class MailboxManager;
40 } 38 }
41 } 39 }
42 40
43 namespace content { 41 namespace content {
44 42
45 class GpuChannel; 43 class GpuChannel;
46 class GpuVideoDecodeAccelerator; 44 class GpuVideoDecodeAccelerator;
47 class GpuVideoEncodeAccelerator; 45 class GpuVideoEncodeAccelerator;
48 class GpuWatchdog; 46 class GpuWatchdog;
(...skipping 15 matching lines...) Expand all
64 }; 62 };
65 63
66 typedef base::Callback<void(const std::vector<ui::LatencyInfo>&)> 64 typedef base::Callback<void(const std::vector<ui::LatencyInfo>&)>
67 LatencyInfoCallback; 65 LatencyInfoCallback;
68 66
69 GpuCommandBufferStub( 67 GpuCommandBufferStub(
70 GpuChannel* channel, 68 GpuChannel* channel,
71 GpuCommandBufferStub* share_group, 69 GpuCommandBufferStub* share_group,
72 const gfx::GLSurfaceHandle& handle, 70 const gfx::GLSurfaceHandle& handle,
73 gpu::gles2::MailboxManager* mailbox_manager, 71 gpu::gles2::MailboxManager* mailbox_manager,
74 gpu::gles2::ImageManager* image_manager,
75 const gfx::Size& size, 72 const gfx::Size& size,
76 const gpu::gles2::DisallowedFeatures& disallowed_features, 73 const gpu::gles2::DisallowedFeatures& disallowed_features,
77 const std::vector<int32>& attribs, 74 const std::vector<int32>& attribs,
78 gfx::GpuPreference gpu_preference, 75 gfx::GpuPreference gpu_preference,
79 bool use_virtualized_gl_context, 76 bool use_virtualized_gl_context,
80 int32 route_id, 77 int32 route_id,
81 int32 surface_id, 78 int32 surface_id,
82 GpuWatchdog* watchdog, 79 GpuWatchdog* watchdog,
83 bool software, 80 bool software,
84 const GURL& active_url); 81 const GURL& active_url);
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 void OnRetireSyncPoint(uint32 sync_point); 190 void OnRetireSyncPoint(uint32 sync_point);
194 bool OnWaitSyncPoint(uint32 sync_point); 191 bool OnWaitSyncPoint(uint32 sync_point);
195 void OnSyncPointRetired(); 192 void OnSyncPointRetired();
196 void OnSignalSyncPoint(uint32 sync_point, uint32 id); 193 void OnSignalSyncPoint(uint32 sync_point, uint32 id);
197 void OnSignalSyncPointAck(uint32 id); 194 void OnSignalSyncPointAck(uint32 id);
198 void OnSignalQuery(uint32 query, uint32 id); 195 void OnSignalQuery(uint32 query, uint32 id);
199 196
200 void OnSetClientHasMemoryAllocationChangedCallback(bool has_callback); 197 void OnSetClientHasMemoryAllocationChangedCallback(bool has_callback);
201 198
202 void OnRegisterGpuMemoryBuffer(int32 id, 199 void OnRegisterGpuMemoryBuffer(int32 id,
203 gfx::GpuMemoryBufferHandle gpu_memory_buffer, 200 gfx::GpuMemoryBufferHandle handle,
204 uint32 width, 201 uint32 width,
205 uint32 height, 202 uint32 height,
206 uint32 internalformat); 203 uint32 internalformat);
207 void OnDestroyGpuMemoryBuffer(int32 id); 204 void OnDestroyGpuMemoryBuffer(int32 id);
208 205
209 void OnCommandProcessed(); 206 void OnCommandProcessed();
210 void OnParseError(); 207 void OnParseError();
211 void OnSetLatencyInfo(const std::vector<ui::LatencyInfo>& latency_info); 208 void OnSetLatencyInfo(const std::vector<ui::LatencyInfo>& latency_info);
212 void OnCreateStreamTexture( 209 void OnCreateStreamTexture(
213 uint32 texture_id, int32 stream_id, bool* succeeded); 210 uint32 texture_id, int32 stream_id, bool* succeeded);
(...skipping 30 matching lines...) Expand all
244 bool use_virtualized_gl_context_; 241 bool use_virtualized_gl_context_;
245 int32 route_id_; 242 int32 route_id_;
246 int32 surface_id_; 243 int32 surface_id_;
247 bool software_; 244 bool software_;
248 uint32 last_flush_count_; 245 uint32 last_flush_count_;
249 246
250 scoped_ptr<gpu::CommandBufferService> command_buffer_; 247 scoped_ptr<gpu::CommandBufferService> command_buffer_;
251 scoped_ptr<gpu::gles2::GLES2Decoder> decoder_; 248 scoped_ptr<gpu::gles2::GLES2Decoder> decoder_;
252 scoped_ptr<gpu::GpuScheduler> scheduler_; 249 scoped_ptr<gpu::GpuScheduler> scheduler_;
253 scoped_refptr<gfx::GLSurface> surface_; 250 scoped_refptr<gfx::GLSurface> surface_;
254 scoped_ptr<gpu::GpuControlService> gpu_control_service_;
255 251
256 scoped_ptr<GpuMemoryManagerClientState> memory_manager_client_state_; 252 scoped_ptr<GpuMemoryManagerClientState> memory_manager_client_state_;
257 // The last memory allocation received from the GpuMemoryManager (used to 253 // The last memory allocation received from the GpuMemoryManager (used to
258 // elide redundant work). 254 // elide redundant work).
259 bool last_memory_allocation_valid_; 255 bool last_memory_allocation_valid_;
260 gpu::MemoryAllocation last_memory_allocation_; 256 gpu::MemoryAllocation last_memory_allocation_;
261 257
262 GpuWatchdog* watchdog_; 258 GpuWatchdog* watchdog_;
263 259
264 ObserverList<DestructionObserver> destruction_observers_; 260 ObserverList<DestructionObserver> destruction_observers_;
(...skipping 16 matching lines...) Expand all
281 size_t total_gpu_memory_; 277 size_t total_gpu_memory_;
282 scoped_ptr<WaitForCommandState> wait_for_token_; 278 scoped_ptr<WaitForCommandState> wait_for_token_;
283 scoped_ptr<WaitForCommandState> wait_for_get_offset_; 279 scoped_ptr<WaitForCommandState> wait_for_get_offset_;
284 280
285 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); 281 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub);
286 }; 282 };
287 283
288 } // namespace content 284 } // namespace content
289 285
290 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 286 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_channel_manager.cc ('k') | content/common/gpu/gpu_command_buffer_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698