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

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

Issue 24925002: Move Insert/SignalSyncPoint() to GpuControl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase past r226145 Created 7 years, 2 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 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 // GetLastError declared would mean we'd have to also define it, and pull more 130 // GetLastError declared would mean we'd have to also define it, and pull more
131 // of gpu in to the NaCl Win64 build. 131 // of gpu in to the NaCl Win64 build.
132 #if !defined(NACL_WIN64) 132 #if !defined(NACL_WIN64)
133 // TODO(apatrick): this is a temporary optimization while skia is calling 133 // TODO(apatrick): this is a temporary optimization while skia is calling
134 // RendererGLContext::MakeCurrent prior to every GL call. It saves returning 6 134 // RendererGLContext::MakeCurrent prior to every GL call. It saves returning 6
135 // ints redundantly when only the error is needed for the CommandBufferProxy 135 // ints redundantly when only the error is needed for the CommandBufferProxy
136 // implementation. 136 // implementation.
137 virtual error::Error GetLastError(); 137 virtual error::Error GetLastError();
138 #endif 138 #endif
139 139
140 // Inserts a sync point, returning its ID. Sync point IDs are global and can
141 // be used for cross-context synchronization.
142 virtual uint32 InsertSyncPoint() = 0;
143
144 private: 140 private:
145 DISALLOW_COPY_AND_ASSIGN(CommandBuffer); 141 DISALLOW_COPY_AND_ASSIGN(CommandBuffer);
146 }; 142 };
147 143
148 } // namespace gpu 144 } // namespace gpu
149 145
150 #endif // GPU_COMMAND_BUFFER_COMMON_COMMAND_BUFFER_H_ 146 #endif // GPU_COMMAND_BUFFER_COMMON_COMMAND_BUFFER_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation.cc ('k') | gpu/command_buffer/common/gpu_control.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698