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

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

Issue 16831004: Perform glReadPixels with PBOs in the gpu, if PBOs are available. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use webglid where approperiate Created 7 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 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 // graphics context fails to create. Do not call from more than one thread. 123 // graphics context fails to create. Do not call from more than one thread.
124 virtual bool makeContextCurrent(); 124 virtual bool makeContextCurrent();
125 125
126 virtual int width(); 126 virtual int width();
127 virtual int height(); 127 virtual int height();
128 128
129 virtual unsigned int insertSyncPoint(); 129 virtual unsigned int insertSyncPoint();
130 virtual void waitSyncPoint(unsigned int sync_point); 130 virtual void waitSyncPoint(unsigned int sync_point);
131 virtual void signalSyncPoint(unsigned sync_point, 131 virtual void signalSyncPoint(unsigned sync_point,
132 WebGraphicsSyncPointCallback* callback); 132 WebGraphicsSyncPointCallback* callback);
133 virtual void signalQuery(unsigned query,
134 WebGraphicsSyncPointCallback* callback);
133 135
134 virtual void reshape(int width, int height); 136 virtual void reshape(int width, int height);
135 virtual void reshapeWithScaleFactor( 137 virtual void reshapeWithScaleFactor(
136 int width, int height, float scale_factor); 138 int width, int height, float scale_factor);
137 139
138 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size); 140 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size);
139 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size, 141 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size,
140 WebGLId framebuffer, int width, int height); 142 WebGLId framebuffer, int width, int height);
141 143
142 virtual void prepareTexture(); 144 virtual void prepareTexture();
(...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after
751 bool use_echo_for_swap_ack_; 753 bool use_echo_for_swap_ack_;
752 size_t command_buffer_size_; 754 size_t command_buffer_size_;
753 size_t start_transfer_buffer_size_; 755 size_t start_transfer_buffer_size_;
754 size_t min_transfer_buffer_size_; 756 size_t min_transfer_buffer_size_;
755 size_t max_transfer_buffer_size_; 757 size_t max_transfer_buffer_size_;
756 }; 758 };
757 759
758 } // namespace content 760 } // namespace content
759 761
760 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ 762 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698