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

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

Issue 10735010: 3D Compositing in <browser>, first draft. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Use the correct baseline Created 8 years, 4 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
« no previous file with comments | « content/common/browser_plugin_messages.h ('k') | content/content_renderer.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // graphics context fails to create. Do not call from more than one thread. 144 // graphics context fails to create. Do not call from more than one thread.
145 virtual bool makeContextCurrent(); 145 virtual bool makeContextCurrent();
146 146
147 virtual int width(); 147 virtual int width();
148 virtual int height(); 148 virtual int height();
149 149
150 virtual bool isGLES2Compliant(); 150 virtual bool isGLES2Compliant();
151 151
152 virtual bool setParentContext(WebGraphicsContext3D* parent_context); 152 virtual bool setParentContext(WebGraphicsContext3D* parent_context);
153 153
154 virtual unsigned int insertSyncPoint(); 154 virtual unsigned int insertSyncPoint() OVERRIDE;
155 virtual void waitSyncPoint(unsigned int); 155 virtual void waitSyncPoint(unsigned int);
156 156
157 virtual void reshape(int width, int height); 157 virtual void reshape(int width, int height);
158 158
159 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size); 159 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size);
160 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size, 160 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size,
161 WebGLId framebuffer, int width, int height); 161 WebGLId framebuffer, int width, int height);
162 162
163 virtual WebGLId getPlatformTextureId(); 163 virtual WebGLId getPlatformTextureId();
164 virtual void prepareTexture(); 164 virtual void prepareTexture();
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 gpu::gles2::GLES2CmdHelper* gles2_helper_; 710 gpu::gles2::GLES2CmdHelper* gles2_helper_;
711 gpu::TransferBuffer* transfer_buffer_; 711 gpu::TransferBuffer* transfer_buffer_;
712 gpu::gles2::GLES2Implementation* gl_; 712 gpu::gles2::GLES2Implementation* gl_;
713 Error last_error_; 713 Error last_error_;
714 int frame_number_; 714 int frame_number_;
715 bool bind_generates_resources_; 715 bool bind_generates_resources_;
716 bool use_echo_for_swap_ack_; 716 bool use_echo_for_swap_ack_;
717 }; 717 };
718 718
719 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ 719 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_
OLDNEW
« no previous file with comments | « content/common/browser_plugin_messages.h ('k') | content/content_renderer.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698