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

Side by Side Diff: gpu/command_buffer/service/context_state.h

Issue 1492013002: Reland of Upgrade PixelStorei to ES3/WebGL2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
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 // This file contains the ContextState class. 5 // This file contains the ContextState class.
6 6
7 #ifndef GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_H_ 7 #ifndef GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_H_
8 #define GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_H_ 8 #define GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_H_
9 9
10 #include <vector> 10 #include <vector>
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 scoped_refptr<Valuebuffer> bound_valuebuffer; 259 scoped_refptr<Valuebuffer> bound_valuebuffer;
260 260
261 bool pack_reverse_row_order; 261 bool pack_reverse_row_order;
262 bool ignore_cached_state; 262 bool ignore_cached_state;
263 263
264 mutable bool fbo_binding_for_scissor_workaround_dirty; 264 mutable bool fbo_binding_for_scissor_workaround_dirty;
265 265
266 private: 266 private:
267 void EnableDisable(GLenum pname, bool enable) const; 267 void EnableDisable(GLenum pname, bool enable) const;
268 268
269 // If a buffer object is bound to PIXEL_PACK_BUFFER, set all pack parameters
270 // user values; otherwise, set them to 0.
271 void UpdatePackParameters() const;
272 // If a buffer object is bound to PIXEL_UNPACK_BUFFER, set all unpack
273 // parameters user values; otherwise, set them to 0.
274 void UpdateUnpackParameters() const;
275
269 FeatureInfo* feature_info_; 276 FeatureInfo* feature_info_;
270 scoped_ptr<ErrorState> error_state_; 277 scoped_ptr<ErrorState> error_state_;
271 }; 278 };
272 279
273 } // namespace gles2 280 } // namespace gles2
274 } // namespace gpu 281 } // namespace gpu
275 282
276 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_H_ 283 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_H_
277 284
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation.cc ('k') | gpu/command_buffer/service/context_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698