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

Unified Diff: gpu/command_buffer/service/context_state.h

Issue 11275120: Virtual GL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
« no previous file with comments | « gpu/command_buffer/build_gles2_cmd_buffer.py ('k') | gpu/command_buffer/service/context_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/context_state.h
diff --git a/gpu/command_buffer/service/context_state.h b/gpu/command_buffer/service/context_state.h
index 6997d601a049efc87456e7f82312c42b461e217b..b011ab2b2a445afee26039298fa3dfb64e42ff85 100644
--- a/gpu/command_buffer/service/context_state.h
+++ b/gpu/command_buffer/service/context_state.h
@@ -7,6 +7,7 @@
#ifndef GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_H_
#define GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_H_
+#include <vector>
#include "base/logging.h"
#include "gpu/command_buffer/service/gl_utils.h"
#include "gpu/command_buffer/service/buffer_manager.h"
@@ -83,8 +84,9 @@ struct GPU_EXPORT ContextState {
void Initialize();
- void InitCapabilities();
- void InitState();
+ void RestoreState() const;
+ void InitCapabilities() const;
+ void InitState() const;
#include "gpu/command_buffer/service/context_state_autogen.h"
@@ -101,16 +103,12 @@ struct GPU_EXPORT ContextState {
// be 2.
GLuint active_texture_unit;
- // Cached values of the currently assigned viewport dimensions.
- GLsizei viewport_max_width;
- GLsizei viewport_max_height;
-
// The currently bound array buffer. If this is 0 it is illegal to call
// glVertexAttribPointer.
BufferManager::BufferInfo::Ref bound_array_buffer;
// Which textures are bound to texture units through glActiveTexture.
- scoped_array<TextureUnit> texture_units;
+ std::vector<TextureUnit> texture_units;
// Class that manages vertex attribs.
VertexAttribManager::Ref vertex_attrib_manager;
« no previous file with comments | « gpu/command_buffer/build_gles2_cmd_buffer.py ('k') | gpu/command_buffer/service/context_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698