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

Side by Side Diff: content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h

Issue 14126014: Add signalSyncPoint to the WebGraphicsContext3D command buffer impls. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ 5 #ifndef CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_
6 #define CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ 6 #define CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 virtual bool makeContextCurrent(); 144 virtual bool makeContextCurrent();
145 145
146 virtual int width(); 146 virtual int width();
147 virtual int height(); 147 virtual int height();
148 148
149 virtual bool isGLES2Compliant(); 149 virtual bool isGLES2Compliant();
150 150
151 virtual bool setParentContext(WebGraphicsContext3D* parent_context); 151 virtual bool setParentContext(WebGraphicsContext3D* parent_context);
152 152
153 virtual unsigned int insertSyncPoint(); 153 virtual unsigned int insertSyncPoint();
154 virtual void waitSyncPoint(unsigned int); 154 virtual void waitSyncPoint(unsigned int sync_point);
155 virtual void signalSyncPoint(unsigned sync_point,
156 WebGraphicsSyncPointCallback* callback);
155 157
156 virtual void reshape(int width, int height); 158 virtual void reshape(int width, int height);
157 159
158 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size); 160 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size);
159 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size, 161 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size,
160 WebGLId framebuffer, int width, int height); 162 WebGLId framebuffer, int width, int height);
161 163
162 virtual WebGLId getPlatformTextureId(); 164 virtual WebGLId getPlatformTextureId();
163 virtual void prepareTexture(); 165 virtual void prepareTexture();
164 virtual void postSubBufferCHROMIUM(int x, int y, int width, int height); 166 virtual void postSubBufferCHROMIUM(int x, int y, int width, int height);
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after
769 gpu::gles2::GLES2Interface* trace_gl_; 771 gpu::gles2::GLES2Interface* trace_gl_;
770 Error last_error_; 772 Error last_error_;
771 int frame_number_; 773 int frame_number_;
772 bool bind_generates_resources_; 774 bool bind_generates_resources_;
773 bool use_echo_for_swap_ack_; 775 bool use_echo_for_swap_ack_;
774 }; 776 };
775 777
776 } // namespace content 778 } // namespace content
777 779
778 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ 780 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698