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

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

Issue 7765013: Revert 98504 - Manually merging trunk revs 95836 and 96904 to 835 branch (second attempt) (Closed) Base URL: svn://svn.chromium.org/chrome/branches/835/src/
Patch Set: Created 9 years, 3 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
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h" 5 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 9
10 #include "base/string_number_conversions.h" 10 #include "base/string_number_conversions.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 GLES2DecoderTestBase::~GLES2DecoderTestBase() {} 48 GLES2DecoderTestBase::~GLES2DecoderTestBase() {}
49 49
50 void GLES2DecoderTestBase::SetUp() { 50 void GLES2DecoderTestBase::SetUp() {
51 InitDecoder( 51 InitDecoder(
52 "", // extensions 52 "", // extensions
53 true, // has alpha 53 true, // has alpha
54 true, // has depth 54 true, // has depth
55 false, // has stencil 55 false, // has stencil
56 true, // request alpha 56 true, // request alpha
57 true, // request depth 57 true, // request depth
58 false, // request stencil 58 false); // request stencil
59 true); // bind generates resource
60 } 59 }
61 60
62 void GLES2DecoderTestBase::InitDecoder( 61 void GLES2DecoderTestBase::InitDecoder(
63 const char* extensions, 62 const char* extensions,
64 bool has_alpha, 63 bool has_alpha,
65 bool has_depth, 64 bool has_depth,
66 bool has_stencil, 65 bool has_stencil,
67 bool request_alpha, 66 bool request_alpha,
68 bool request_depth, 67 bool request_depth,
69 bool request_stencil, 68 bool request_stencil) {
70 bool bind_generates_resource) {
71 gl_.reset(new StrictMock<MockGLInterface>()); 69 gl_.reset(new StrictMock<MockGLInterface>());
72 ::gfx::GLInterface::SetGLInterface(gl_.get()); 70 ::gfx::GLInterface::SetGLInterface(gl_.get());
73 surface_manager_.reset(new StrictMock<MockSurfaceManager>); 71 surface_manager_.reset(new StrictMock<MockSurfaceManager>);
74 group_ = ContextGroup::Ref(new ContextGroup(bind_generates_resource)); 72 group_ = ContextGroup::Ref(new ContextGroup());
75 73
76 InSequence sequence; 74 InSequence sequence;
77 75
78 TestHelper::SetupContextGroupInitExpectations(gl_.get(), 76 TestHelper::SetupContextGroupInitExpectations(gl_.get(),
79 DisallowedExtensions(), extensions); 77 DisallowedExtensions(), extensions);
80 78
81 EXPECT_TRUE(group_->Initialize(DisallowedExtensions(), NULL)); 79 EXPECT_TRUE(group_->Initialize(DisallowedExtensions(), NULL));
82 80
83 EXPECT_CALL(*gl_, EnableVertexAttribArray(0)) 81 EXPECT_CALL(*gl_, EnableVertexAttribArray(0))
84 .Times(1) 82 .Times(1)
(...skipping 804 matching lines...) Expand 10 before | Expand all | Expand 10 after
889 887
890 const char* GLES2DecoderWithShaderTestBase::kAttrib1Name = "attrib1"; 888 const char* GLES2DecoderWithShaderTestBase::kAttrib1Name = "attrib1";
891 const char* GLES2DecoderWithShaderTestBase::kAttrib2Name = "attrib2"; 889 const char* GLES2DecoderWithShaderTestBase::kAttrib2Name = "attrib2";
892 const char* GLES2DecoderWithShaderTestBase::kAttrib3Name = "attrib3"; 890 const char* GLES2DecoderWithShaderTestBase::kAttrib3Name = "attrib3";
893 const char* GLES2DecoderWithShaderTestBase::kUniform1Name = "uniform1"; 891 const char* GLES2DecoderWithShaderTestBase::kUniform1Name = "uniform1";
894 const char* GLES2DecoderWithShaderTestBase::kUniform2Name = "uniform2[0]"; 892 const char* GLES2DecoderWithShaderTestBase::kUniform2Name = "uniform2[0]";
895 const char* GLES2DecoderWithShaderTestBase::kUniform3Name = "uniform3[0]"; 893 const char* GLES2DecoderWithShaderTestBase::kUniform3Name = "uniform3[0]";
896 894
897 } // namespace gles2 895 } // namespace gles2
898 } // namespace gpu 896 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h ('k') | gpu/command_buffer/service/program_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698