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

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

Issue 10795037: Revert 147328 - Current status of patch: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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>
11 11
12 #include "base/id_map.h" 12 #include "base/id_map.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "base/observer_list.h" 14 #include "base/observer_list.h"
15 #include "content/common/content_export.h" 15 #include "content/common/content_export.h"
16 #include "content/common/gpu/gpu_memory_allocation.h" 16 #include "content/common/gpu/gpu_memory_allocation.h"
17 #include "content/common/gpu/gpu_memory_allocation.h"
17 #include "googleurl/src/gurl.h" 18 #include "googleurl/src/gurl.h"
18 #include "gpu/command_buffer/common/constants.h" 19 #include "gpu/command_buffer/common/constants.h"
19 #include "gpu/command_buffer/service/command_buffer_service.h" 20 #include "gpu/command_buffer/service/command_buffer_service.h"
20 #include "gpu/command_buffer/service/context_group.h" 21 #include "gpu/command_buffer/service/context_group.h"
21 #include "gpu/command_buffer/service/gpu_scheduler.h" 22 #include "gpu/command_buffer/service/gpu_scheduler.h"
22 #include "ipc/ipc_listener.h" 23 #include "ipc/ipc_listener.h"
23 #include "ipc/ipc_sender.h" 24 #include "ipc/ipc_sender.h"
24 #include "media/base/video_decoder_config.h" 25 #include "media/base/video_decoder_config.h"
25 #include "ui/gfx/native_widget_types.h" 26 #include "ui/gfx/native_widget_types.h"
26 #include "ui/gfx/size.h" 27 #include "ui/gfx/size.h"
27 #include "ui/gl/gl_context.h" 28 #include "ui/gl/gl_context.h"
28 #include "ui/gl/gl_surface.h" 29 #include "ui/gl/gl_surface.h"
29 #include "ui/gl/gpu_preference.h" 30 #include "ui/gl/gpu_preference.h"
30 #include "ui/surface/transport_dib.h" 31 #include "ui/surface/transport_dib.h"
31 32
32 #if defined(OS_MACOSX) 33 #if defined(OS_MACOSX)
33 #include "ui/surface/accelerated_surface_mac.h" 34 #include "ui/surface/accelerated_surface_mac.h"
34 #endif 35 #endif
35 36
36 class GpuChannel; 37 class GpuChannel;
37 struct GpuMemoryAllocation; 38 struct GpuMemoryAllocation;
38 class GpuVideoDecodeAccelerator; 39 class GpuVideoDecodeAccelerator;
39 class GpuWatchdog; 40 class GpuWatchdog;
40 41
41 namespace gpu { 42 namespace gpu {
42 namespace gles2 { 43 namespace gles2 {
43 class ProgramCache;
44 class MailboxManager; 44 class MailboxManager;
45 } 45 }
46 } 46 }
47 47
48 // This Base class is used to expose methods of GpuCommandBufferStub used for 48 // This Base class is used to expose methods of GpuCommandBufferStub used for
49 // testability. 49 // testability.
50 class CONTENT_EXPORT GpuCommandBufferStubBase { 50 class CONTENT_EXPORT GpuCommandBufferStubBase {
51 public: 51 public:
52 struct CONTENT_EXPORT SurfaceState { 52 struct CONTENT_EXPORT SurfaceState {
53 int32 surface_id; 53 int32 surface_id;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 gpu::gles2::MailboxManager* mailbox_manager, 98 gpu::gles2::MailboxManager* mailbox_manager,
99 const gfx::Size& size, 99 const gfx::Size& size,
100 const gpu::gles2::DisallowedFeatures& disallowed_features, 100 const gpu::gles2::DisallowedFeatures& disallowed_features,
101 const std::string& allowed_extensions, 101 const std::string& allowed_extensions,
102 const std::vector<int32>& attribs, 102 const std::vector<int32>& attribs,
103 gfx::GpuPreference gpu_preference, 103 gfx::GpuPreference gpu_preference,
104 int32 route_id, 104 int32 route_id,
105 int32 surface_id, 105 int32 surface_id,
106 GpuWatchdog* watchdog, 106 GpuWatchdog* watchdog,
107 bool software, 107 bool software,
108 const GURL& active_url, 108 const GURL& active_url);
109 gpu::gles2::ProgramCache* program_cache);
110 109
111 virtual ~GpuCommandBufferStub(); 110 virtual ~GpuCommandBufferStub();
112 111
113 // IPC::Listener implementation: 112 // IPC::Listener implementation:
114 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 113 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
115 114
116 // IPC::Sender implementation: 115 // IPC::Sender implementation:
117 virtual bool Send(IPC::Message* msg) OVERRIDE; 116 virtual bool Send(IPC::Message* msg) OVERRIDE;
118 117
119 // GpuCommandBufferStubBase implementation: 118 // GpuCommandBufferStubBase implementation:
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 284
286 scoped_refptr<gpu::RefCountedCounter> preempt_by_counter_; 285 scoped_refptr<gpu::RefCountedCounter> preempt_by_counter_;
287 286
288 GURL active_url_; 287 GURL active_url_;
289 size_t active_url_hash_; 288 size_t active_url_hash_;
290 289
291 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); 290 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub);
292 }; 291 };
293 292
294 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 293 #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