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

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

Issue 11130005: Move per context GL state to a separate object. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 months 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "gpu/command_buffer/service/context_state.h"
6
7 namespace gpu {
8 namespace gles2 {
9
10 TextureUnit::TextureUnit()
11 : bind_target(GL_TEXTURE_2D) {
12 }
13
14 TextureUnit::~TextureUnit() {
15 }
16
17 ContextState::ContextState()
18 : pack_alignment(4),
19 unpack_alignment(4),
20 active_texture_unit(0),
21 color_clear_red(0),
22 color_clear_green(0),
23 color_clear_blue(0),
24 color_clear_alpha(0),
25 color_mask_red(true),
26 color_mask_green(true),
27 color_mask_blue(true),
28 color_mask_alpha(true),
29 stencil_clear(0),
30 stencil_mask_front(-1),
31 stencil_mask_back(-1),
32 depth_clear(1.0f),
33 depth_mask(true),
34 enable_blend(false),
35 enable_cull_face(false),
36 enable_scissor_test(false),
37 enable_depth_test(false),
38 enable_stencil_test(false),
39 viewport_x(0),
40 viewport_y(0),
41 viewport_width(0),
42 viewport_height(0),
43 viewport_max_width(0),
44 viewport_max_height(0) {
45 }
46
47 ContextState::~ContextState() {
48 }
49
50 } // namespace gles2
51 } // namespace gpu
52
53
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698