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

Side by Side Diff: gpu/command_buffer/service/in_process_command_buffer.h

Issue 23660006: FeatureInfo: Remove allowed_extensions and init workarounds early (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix android_webview build Created 7 years, 3 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ 6 #define GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 static void SetGpuMemoryBufferFactory(GpuMemoryBufferFactory* factory); 75 static void SetGpuMemoryBufferFactory(GpuMemoryBufferFactory* factory);
76 76
77 // If |surface| is not NULL, use it directly; in this case, the command 77 // If |surface| is not NULL, use it directly; in this case, the command
78 // buffer gpu thread must be the same as the client thread. Otherwise create 78 // buffer gpu thread must be the same as the client thread. Otherwise create
79 // a new GLSurface. 79 // a new GLSurface.
80 bool Initialize(scoped_refptr<gfx::GLSurface> surface, 80 bool Initialize(scoped_refptr<gfx::GLSurface> surface,
81 bool is_offscreen, 81 bool is_offscreen,
82 bool share_resources, 82 bool share_resources,
83 gfx::AcceleratedWidget window, 83 gfx::AcceleratedWidget window,
84 const gfx::Size& size, 84 const gfx::Size& size,
85 const char* allowed_extensions,
86 const std::vector<int32>& attribs, 85 const std::vector<int32>& attribs,
87 gfx::GpuPreference gpu_preference, 86 gfx::GpuPreference gpu_preference,
88 const base::Closure& context_lost_callback, 87 const base::Closure& context_lost_callback,
89 unsigned int share_group_id); 88 unsigned int share_group_id);
90 void Destroy(); 89 void Destroy();
91 void SignalSyncPoint(unsigned sync_point, 90 void SignalSyncPoint(unsigned sync_point,
92 const base::Closure& callback); 91 const base::Closure& callback);
93 92
94 // CommandBuffer implementation: 93 // CommandBuffer implementation:
95 virtual bool Initialize() OVERRIDE; 94 virtual bool Initialize() OVERRIDE;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 126
128 #if defined(OS_ANDROID) 127 #if defined(OS_ANDROID)
129 scoped_refptr<gfx::SurfaceTexture> GetSurfaceTexture( 128 scoped_refptr<gfx::SurfaceTexture> GetSurfaceTexture(
130 uint32 stream_id); 129 uint32 stream_id);
131 #endif 130 #endif
132 131
133 private: 132 private:
134 bool InitializeOnGpuThread(bool is_offscreen, 133 bool InitializeOnGpuThread(bool is_offscreen,
135 gfx::AcceleratedWidget window, 134 gfx::AcceleratedWidget window,
136 const gfx::Size& size, 135 const gfx::Size& size,
137 const char* allowed_extensions,
138 const std::vector<int32>& attribs, 136 const std::vector<int32>& attribs,
139 gfx::GpuPreference gpu_preference); 137 gfx::GpuPreference gpu_preference);
140 bool DestroyOnGpuThread(); 138 bool DestroyOnGpuThread();
141 void FlushOnGpuThread(int32 put_offset); 139 void FlushOnGpuThread(int32 put_offset);
142 bool MakeCurrent(); 140 bool MakeCurrent();
143 bool IsContextLost(); 141 bool IsContextLost();
144 base::Closure WrapCallback(const base::Closure& callback); 142 base::Closure WrapCallback(const base::Closure& callback);
145 State GetStateFast(); 143 State GetStateFast();
146 void QueueTask(const base::Closure& task) { queue_->QueueTask(task); } 144 void QueueTask(const base::Closure& task) { queue_->QueueTask(task); }
147 void CheckSequencedThread(); 145 void CheckSequencedThread();
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 // Only used with explicit scheduling and the gpu thread is the same as 182 // Only used with explicit scheduling and the gpu thread is the same as
185 // the client thread. 183 // the client thread.
186 scoped_ptr<base::SequenceChecker> sequence_checker_; 184 scoped_ptr<base::SequenceChecker> sequence_checker_;
187 185
188 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer); 186 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer);
189 }; 187 };
190 188
191 } // namespace gpu 189 } // namespace gpu
192 190
193 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ 191 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc ('k') | gpu/command_buffer/service/in_process_command_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698