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

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

Issue 17176027: Add gpu command buffer support for loseContextCHROMIUM (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: response to piman feedback 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
« no previous file with comments | « no previous file | content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc » ('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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 virtual int width(); 133 virtual int width();
134 virtual int height(); 134 virtual int height();
135 135
136 virtual unsigned int insertSyncPoint(); 136 virtual unsigned int insertSyncPoint();
137 virtual void waitSyncPoint(unsigned int sync_point); 137 virtual void waitSyncPoint(unsigned int sync_point);
138 virtual void signalSyncPoint(unsigned sync_point, 138 virtual void signalSyncPoint(unsigned sync_point,
139 WebGraphicsSyncPointCallback* callback); 139 WebGraphicsSyncPointCallback* callback);
140 virtual void signalQuery(unsigned query, 140 virtual void signalQuery(unsigned query,
141 WebGraphicsSyncPointCallback* callback); 141 WebGraphicsSyncPointCallback* callback);
142 142
143 virtual void loseContextCHROMIUM(WGC3Denum current, WGC3Denum other);
144
143 virtual void reshape(int width, int height); 145 virtual void reshape(int width, int height);
144 virtual void reshapeWithScaleFactor( 146 virtual void reshapeWithScaleFactor(
145 int width, int height, float scale_factor); 147 int width, int height, float scale_factor);
146 148
147 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size); 149 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size);
148 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size, 150 virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size,
149 WebGLId framebuffer, int width, int height); 151 WebGLId framebuffer, int width, int height);
150 152
151 virtual void prepareTexture(); 153 virtual void prepareTexture();
152 virtual void postSubBufferCHROMIUM(int x, int y, int width, int height); 154 virtual void postSubBufferCHROMIUM(int x, int y, int width, int height);
(...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after
761 bool use_echo_for_swap_ack_; 763 bool use_echo_for_swap_ack_;
762 size_t command_buffer_size_; 764 size_t command_buffer_size_;
763 size_t start_transfer_buffer_size_; 765 size_t start_transfer_buffer_size_;
764 size_t min_transfer_buffer_size_; 766 size_t min_transfer_buffer_size_;
765 size_t max_transfer_buffer_size_; 767 size_t max_transfer_buffer_size_;
766 }; 768 };
767 769
768 } // namespace content 770 } // namespace content
769 771
770 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ 772 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698