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

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

Issue 1922633002: Implement TransformFeedbackManager in GPU command buffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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_SERVICE_BUFFER_MANAGER_H_ 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_BUFFER_MANAGER_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_BUFFER_MANAGER_H_ 6 #define GPU_COMMAND_BUFFER_SERVICE_BUFFER_MANAGER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 Buffer* GetBufferInfoForTarget(ContextState* state, GLenum target) const; 286 Buffer* GetBufferInfoForTarget(ContextState* state, GLenum target) const;
287 287
288 // base::trace_event::MemoryDumpProvider implementation. 288 // base::trace_event::MemoryDumpProvider implementation.
289 bool OnMemoryDump(const base::trace_event::MemoryDumpArgs& args, 289 bool OnMemoryDump(const base::trace_event::MemoryDumpArgs& args,
290 base::trace_event::ProcessMemoryDump* pmd) override; 290 base::trace_event::ProcessMemoryDump* pmd) override;
291 291
292 private: 292 private:
293 friend class Buffer; 293 friend class Buffer;
294 friend class TestHelper; // Needs access to DoBufferData. 294 friend class TestHelper; // Needs access to DoBufferData.
295 friend class BufferManagerTestBase; // Needs access to DoBufferSubData. 295 friend class BufferManagerTestBase; // Needs access to DoBufferSubData.
296 friend class IndexedBufferBindingHostTest; // Needs access to SetInfo.
296 297
297 void StartTracking(Buffer* buffer); 298 void StartTracking(Buffer* buffer);
298 void StopTracking(Buffer* buffer); 299 void StopTracking(Buffer* buffer);
299 300
300 // Does a glBufferSubData and updates the approriate accounting. 301 // Does a glBufferSubData and updates the approriate accounting.
301 // Assumes the values have already been validated. 302 // Assumes the values have already been validated.
302 void DoBufferSubData( 303 void DoBufferSubData(
303 ErrorState* error_state, 304 ErrorState* error_state,
304 Buffer* buffer, 305 Buffer* buffer,
305 GLenum target, 306 GLenum target,
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 bool have_context_; 352 bool have_context_;
352 bool use_client_side_arrays_for_stream_buffers_; 353 bool use_client_side_arrays_for_stream_buffers_;
353 354
354 DISALLOW_COPY_AND_ASSIGN(BufferManager); 355 DISALLOW_COPY_AND_ASSIGN(BufferManager);
355 }; 356 };
356 357
357 } // namespace gles2 358 } // namespace gles2
358 } // namespace gpu 359 } // namespace gpu
359 360
360 #endif // GPU_COMMAND_BUFFER_SERVICE_BUFFER_MANAGER_H_ 361 #endif // GPU_COMMAND_BUFFER_SERVICE_BUFFER_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698