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

Side by Side Diff: gpu/command_buffer/common/command_buffer.h

Issue 1331843005: Implemented new fence syncs which replaces the old sync points. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Some fixes Created 5 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
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_COMMON_COMMAND_BUFFER_H_ 5 #ifndef GPU_COMMAND_BUFFER_COMMON_COMMAND_BUFFER_H_
6 #define GPU_COMMAND_BUFFER_COMMON_COMMAND_BUFFER_H_ 6 #define GPU_COMMAND_BUFFER_COMMON_COMMAND_BUFFER_H_
7 7
8 #include "gpu/command_buffer/common/buffer.h" 8 #include "gpu/command_buffer/common/buffer.h"
9 #include "gpu/command_buffer/common/constants.h" 9 #include "gpu/command_buffer/common/constants.h"
10 #include "gpu/gpu_export.h" 10 #include "gpu/gpu_export.h"
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 virtual void SetGetBuffer(int32 transfer_buffer_id) = 0; 108 virtual void SetGetBuffer(int32 transfer_buffer_id) = 0;
109 109
110 // Create a transfer buffer of the given size. Returns its ID or -1 on 110 // Create a transfer buffer of the given size. Returns its ID or -1 on
111 // error. 111 // error.
112 virtual scoped_refptr<gpu::Buffer> CreateTransferBuffer(size_t size, 112 virtual scoped_refptr<gpu::Buffer> CreateTransferBuffer(size_t size,
113 int32* id) = 0; 113 int32* id) = 0;
114 114
115 // Destroy a transfer buffer. The ID must be positive. 115 // Destroy a transfer buffer. The ID must be positive.
116 virtual void DestroyTransferBuffer(int32 id) = 0; 116 virtual void DestroyTransferBuffer(int32 id) = 0;
117 117
118 // Get Routing information.
119 virtual void GetRouteInformation(int* channel_id, uint32_t* route_id) = 0;
piman 2015/09/10 23:55:32 Because this is only used on the client side, you
David Yen 2015/09/23 18:30:34 No longer relevant.
120
118 // The NaCl Win64 build only really needs the struct definitions above; having 121 // The NaCl Win64 build only really needs the struct definitions above; having
119 // GetLastError declared would mean we'd have to also define it, and pull more 122 // GetLastError declared would mean we'd have to also define it, and pull more
120 // of gpu in to the NaCl Win64 build. 123 // of gpu in to the NaCl Win64 build.
121 #if !defined(NACL_WIN64) 124 #if !defined(NACL_WIN64)
122 // TODO(apatrick): this is a temporary optimization while skia is calling 125 // TODO(apatrick): this is a temporary optimization while skia is calling
123 // RendererGLContext::MakeCurrent prior to every GL call. It saves returning 6 126 // RendererGLContext::MakeCurrent prior to every GL call. It saves returning 6
124 // ints redundantly when only the error is needed for the CommandBufferProxy 127 // ints redundantly when only the error is needed for the CommandBufferProxy
125 // implementation. 128 // implementation.
126 virtual error::Error GetLastError(); 129 virtual error::Error GetLastError();
127 #endif 130 #endif
128 131
129 private: 132 private:
130 DISALLOW_COPY_AND_ASSIGN(CommandBuffer); 133 DISALLOW_COPY_AND_ASSIGN(CommandBuffer);
131 }; 134 };
132 135
133 } // namespace gpu 136 } // namespace gpu
134 137
135 #endif // GPU_COMMAND_BUFFER_COMMON_COMMAND_BUFFER_H_ 138 #endif // GPU_COMMAND_BUFFER_COMMON_COMMAND_BUFFER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698