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

Unified Diff: gpu/command_buffer/client/gles2_implementation.h

Issue 8513017: Add GL_ANGLE_pack_reverse_row_order to command buffer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/client/gles2_implementation.h
===================================================================
--- gpu/command_buffer/client/gles2_implementation.h (revision 110991)
+++ gpu/command_buffer/client/gles2_implementation.h (working copy)
@@ -202,6 +202,14 @@
void FreeUnusedSharedMemory();
private:
+
+ // Used to track whether an extension is available
+ enum ExtensionStatus {
+ kAvailableExtensionStatus,
+ kUnavailableExtensionStatus,
+ kUnknownExtensionStatus
+ };
+
// Wraps RingBufferWrapper to provide aligned allocations.
class AlignedRingBuffer : public RingBufferWrapper {
public:
@@ -338,6 +346,9 @@
return static_cast<T>(result_buffer_);
}
+ // Lazily determines if GL_ANGLE_pack_reverse_row_order is available
+ bool IsAnglePackReverseRowOrderAvailable();
+
// Gets the GLError through our wrapper.
GLenum GetGLError();
@@ -432,6 +443,8 @@
std::queue<int32> swap_buffers_tokens_;
std::queue<int32> rate_limit_tokens_;
+ ExtensionStatus angle_pack_reverse_row_order_status;
+
GLState gl_state_;
// pack alignment as last set by glPixelStorei
@@ -443,6 +456,9 @@
// unpack yflip as last set by glPixelstorei
bool unpack_flip_y_;
+ // pack reverse row order as last set by glPixelstorei
+ bool pack_reverse_row_order_;
+
scoped_array<TextureUnit> texture_units_;
// 0 to gl_state_.max_combined_texture_image_units.

Powered by Google App Engine
This is Rietveld 408576698