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

Side by Side 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 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 // These functions emulate GLES2 over command buffers for C. 5 #include "../client/client_context_state.h"
6 #include "../common/logging.h"
6 7
7 #include <assert.h> 8 namespace gpu {
8 #include "../client/gles2_lib.h" 9 namespace gles2 {
9 10
10 #ifndef GL_GLEXT_PROTOTYPES 11 ClientContextState::ClientContextState() {
11 #define GL_GLEXT_PROTOTYPES 12 }
12 #endif
13 #include <GLES2/gl2ext.h>
14 13
15 extern "C" { 14 ClientContextState::~ClientContextState() {
15 }
16
16 // Include the auto-generated part of this file. We split this because it means 17 // Include the auto-generated part of this file. We split this because it means
17 // we can easily edit the non-auto generated parts right here in this file 18 // we can easily edit the non-auto generated parts right here in this file
18 // instead of having to edit some template or the code generator. 19 // instead of having to edit some template or the code generator.
19 #include "../client/gles2_c_lib_autogen.h" 20 #include "gpu/command_buffer/client/client_context_state_impl_autogen.h"
20 } // extern "C" 21
22 } // namespace gles2
23 } // namespace gpu
21 24
22 25
OLDNEW
« 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