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

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

Issue 10510013: GPU: Adding sync points for cross-channel synchronization (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments Created 8 years, 6 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 // graphics context fails to create. Do not call from more than one thread. 135 // graphics context fails to create. Do not call from more than one thread.
136 virtual bool makeContextCurrent(); 136 virtual bool makeContextCurrent();
137 137
138 virtual int width(); 138 virtual int width();
139 virtual int height(); 139 virtual int height();
140 140
141 virtual bool isGLES2Compliant(); 141 virtual bool isGLES2Compliant();
142 142
143 virtual bool setParentContext(WebGraphicsContext3D* parent_context); 143 virtual bool setParentContext(WebGraphicsContext3D* parent_context);
144 144
145 virtual unsigned int insertSyncPoint();
146 virtual void waitSyncPoint(unsigned int);
147
145 virtual void reshape(int width, int height); 148 virtual void reshape(int width, int height);
146 149
147 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size); 150 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size);
148 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size, 151 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size,
149 WebGLId framebuffer, int width, int height); 152 WebGLId framebuffer, int width, int height);
150 153
151 virtual WebGLId getPlatformTextureId(); 154 virtual WebGLId getPlatformTextureId();
152 virtual void prepareTexture(); 155 virtual void prepareTexture();
153 virtual void postSubBufferCHROMIUM(int x, int y, int width, int height); 156 virtual void postSubBufferCHROMIUM(int x, int y, int width, int height);
154 157
(...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after
686 CommandBufferProxy* command_buffer_; 689 CommandBufferProxy* command_buffer_;
687 gpu::gles2::GLES2CmdHelper* gles2_helper_; 690 gpu::gles2::GLES2CmdHelper* gles2_helper_;
688 gpu::TransferBuffer* transfer_buffer_; 691 gpu::TransferBuffer* transfer_buffer_;
689 gpu::gles2::GLES2Implementation* gl_; 692 gpu::gles2::GLES2Implementation* gl_;
690 Error last_error_; 693 Error last_error_;
691 int frame_number_; 694 int frame_number_;
692 bool bind_generates_resources_; 695 bool bind_generates_resources_;
693 }; 696 };
694 697
695 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ 698 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698