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

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

Issue 22824009: Remove StreamTextureManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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) 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 #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 #include <vector> 9 #include <vector>
10 10
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 bool request_depth, 88 bool request_depth,
89 bool request_stencil, 89 bool request_stencil,
90 bool bind_generates_resource) { 90 bool bind_generates_resource) {
91 Framebuffer::ClearFramebufferCompleteComboMap(); 91 Framebuffer::ClearFramebufferCompleteComboMap();
92 gl_.reset(new StrictMock<MockGLInterface>()); 92 gl_.reset(new StrictMock<MockGLInterface>());
93 ::gfx::GLInterface::SetGLInterface(gl_.get()); 93 ::gfx::GLInterface::SetGLInterface(gl_.get());
94 94
95 // Only create stream texture manager if extension is requested. 95 // Only create stream texture manager if extension is requested.
96 std::vector<std::string> list; 96 std::vector<std::string> list;
97 base::SplitString(std::string(extensions), ' ', &list); 97 base::SplitString(std::string(extensions), ' ', &list);
98 if (std::find(list.begin(), list.end(),
99 "GL_CHROMIUM_stream_texture") != list.end())
100 stream_texture_manager_.reset(new StrictMock<MockStreamTextureManager>);
101 group_ = scoped_refptr<ContextGroup>(new ContextGroup( 98 group_ = scoped_refptr<ContextGroup>(new ContextGroup(
102 NULL, 99 NULL,
103 NULL, 100 NULL,
104 memory_tracker_, 101 memory_tracker_,
105 stream_texture_manager_.get(),
106 bind_generates_resource)); 102 bind_generates_resource));
107 // These two workarounds are always turned on. 103 // These two workarounds are always turned on.
108 group_->feature_info( 104 group_->feature_info(
109 )->workarounds_.set_texture_filter_before_generating_mipmap = true; 105 )->workarounds_.set_texture_filter_before_generating_mipmap = true;
110 group_->feature_info()->workarounds_.clear_alpha_in_readpixels = true; 106 group_->feature_info()->workarounds_.clear_alpha_in_readpixels = true;
111 107
112 InSequence sequence; 108 InSequence sequence;
113 109
114 TestHelper::SetupContextGroupInitExpectations(gl_.get(), 110 TestHelper::SetupContextGroupInitExpectations(gl_.get(),
115 DisallowedFeatures(), extensions); 111 DisallowedFeatures(), extensions);
(...skipping 1309 matching lines...) Expand 10 before | Expand all | Expand 10 after
1425 SetupDefaultProgram(); 1421 SetupDefaultProgram();
1426 } 1422 }
1427 1423
1428 // Include the auto-generated part of this file. We split this because it means 1424 // Include the auto-generated part of this file. We split this because it means
1429 // we can easily edit the non-auto generated parts right here in this file 1425 // we can easily edit the non-auto generated parts right here in this file
1430 // instead of having to edit some template or the code generator. 1426 // instead of having to edit some template or the code generator.
1431 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h" 1427 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h"
1432 1428
1433 } // namespace gles2 1429 } // namespace gles2
1434 } // namespace gpu 1430 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698