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

Unified Diff: gpu/command_buffer/client/client_context_state.cc

Issue 11363191: Cache more GL state both service and client side. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
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
Index: gpu/command_buffer/client/client_context_state.cc
diff --git a/gpu/command_buffer/client/gles2_c_lib.cc b/gpu/command_buffer/client/client_context_state.cc
similarity index 55%
copy from gpu/command_buffer/client/gles2_c_lib.cc
copy to gpu/command_buffer/client/client_context_state.cc
index 0bed5f8f40180e727dde69a364322875bb0ea81d..84a262e22446a3501a515b8d53959cee4036aeeb 100644
--- a/gpu/command_buffer/client/gles2_c_lib.cc
+++ b/gpu/command_buffer/client/client_context_state.cc
@@ -2,21 +2,24 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// These functions emulate GLES2 over command buffers for C.
+#include "../client/client_context_state.h"
+#include "../common/logging.h"
-#include <assert.h>
-#include "../client/gles2_lib.h"
+namespace gpu {
+namespace gles2 {
-#ifndef GL_GLEXT_PROTOTYPES
-#define GL_GLEXT_PROTOTYPES
-#endif
-#include <GLES2/gl2ext.h>
+ClientContextState::ClientContextState() {
+}
+
+ClientContextState::~ClientContextState() {
+}
-extern "C" {
// Include the auto-generated part of this file. We split this because it means
// we can easily edit the non-auto generated parts right here in this file
// instead of having to edit some template or the code generator.
-#include "../client/gles2_c_lib_autogen.h"
-} // extern "C"
+#include "gpu/command_buffer/client/client_context_state_impl_autogen.h"
+
+} // namespace gles2
+} // namespace gpu
« no previous file with comments | « gpu/command_buffer/client/client_context_state.h ('k') | gpu/command_buffer/client/client_context_state_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698