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

Side by Side Diff: gpu/command_buffer/tests/gl_manager.h

Issue 2134793002: Remove the command buffer method glGetImageivCHROMIUM. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge conflict. Created 4 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
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 GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ 5 #ifndef GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_
6 #define GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ 6 #define GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 Capabilities GetCapabilities() override; 130 Capabilities GetCapabilities() override;
131 int32_t CreateImage(ClientBuffer buffer, 131 int32_t CreateImage(ClientBuffer buffer,
132 size_t width, 132 size_t width,
133 size_t height, 133 size_t height,
134 unsigned internalformat) override; 134 unsigned internalformat) override;
135 void DestroyImage(int32_t id) override; 135 void DestroyImage(int32_t id) override;
136 int32_t CreateGpuMemoryBufferImage(size_t width, 136 int32_t CreateGpuMemoryBufferImage(size_t width,
137 size_t height, 137 size_t height,
138 unsigned internalformat, 138 unsigned internalformat,
139 unsigned usage) override; 139 unsigned usage) override;
140 int32_t GetImageGpuMemoryBufferId(unsigned image_id) override;
141 void SignalQuery(uint32_t query, const base::Closure& callback) override; 140 void SignalQuery(uint32_t query, const base::Closure& callback) override;
142 void SetLock(base::Lock*) override; 141 void SetLock(base::Lock*) override;
143 void EnsureWorkVisible() override; 142 void EnsureWorkVisible() override;
144 gpu::CommandBufferNamespace GetNamespaceID() const override; 143 gpu::CommandBufferNamespace GetNamespaceID() const override;
145 CommandBufferId GetCommandBufferID() const override; 144 CommandBufferId GetCommandBufferID() const override;
146 int32_t GetExtraCommandBufferData() const override; 145 int32_t GetExtraCommandBufferData() const override;
147 uint64_t GenerateFenceSyncRelease() override; 146 uint64_t GenerateFenceSyncRelease() override;
148 bool IsFenceSyncRelease(uint64_t release) override; 147 bool IsFenceSyncRelease(uint64_t release) override;
149 bool IsFenceSyncFlushed(uint64_t release) override; 148 bool IsFenceSyncFlushed(uint64_t release) override;
150 bool IsFenceSyncFlushReceived(uint64_t release) override; 149 bool IsFenceSyncFlushReceived(uint64_t release) override;
(...skipping 28 matching lines...) Expand all
179 std::unique_ptr<gles2::GLES2Implementation> gles2_implementation_; 178 std::unique_ptr<gles2::GLES2Implementation> gles2_implementation_;
180 bool context_lost_allowed_; 179 bool context_lost_allowed_;
181 bool pause_commands_; 180 bool pause_commands_;
182 uint32_t paused_order_num_; 181 uint32_t paused_order_num_;
183 182
184 const CommandBufferId command_buffer_id_; 183 const CommandBufferId command_buffer_id_;
185 uint64_t next_fence_sync_release_; 184 uint64_t next_fence_sync_release_;
186 185
187 bool use_iosurface_memory_buffers_ = false; 186 bool use_iosurface_memory_buffers_ = false;
188 187
189 // A map from image id to GpuMemoryBuffer id.
190 std::map<int32_t, int32_t> image_gmb_ids_map_;
191
192 // Used on Android to virtualize GL for all contexts. 188 // Used on Android to virtualize GL for all contexts.
193 static int use_count_; 189 static int use_count_;
194 static scoped_refptr<gl::GLShareGroup>* base_share_group_; 190 static scoped_refptr<gl::GLShareGroup>* base_share_group_;
195 static scoped_refptr<gl::GLSurface>* base_surface_; 191 static scoped_refptr<gl::GLSurface>* base_surface_;
196 static scoped_refptr<gl::GLContext>* base_context_; 192 static scoped_refptr<gl::GLContext>* base_context_;
197 }; 193 };
198 194
199 } // namespace gpu 195 } // namespace gpu
200 196
201 #endif // GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ 197 #endif // GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/in_process_command_buffer.cc ('k') | gpu/command_buffer/tests/gl_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698