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

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

Issue 634313002: Add mouse input forwarding to gpu service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add Security Test Created 6 years 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 #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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 SetupMockGLBehaviors(); 163 SetupMockGLBehaviors();
164 164
165 // Only create stream texture manager if extension is requested. 165 // Only create stream texture manager if extension is requested.
166 std::vector<std::string> list; 166 std::vector<std::string> list;
167 base::SplitString(normalized_init.extensions, ' ', &list); 167 base::SplitString(normalized_init.extensions, ' ', &list);
168 scoped_refptr<FeatureInfo> feature_info; 168 scoped_refptr<FeatureInfo> feature_info;
169 if (command_line) 169 if (command_line)
170 feature_info = new FeatureInfo(*command_line); 170 feature_info = new FeatureInfo(*command_line);
171 group_ = scoped_refptr<ContextGroup>( 171 group_ = scoped_refptr<ContextGroup>(
172 new ContextGroup(NULL, 172 new ContextGroup(NULL,
173 NULL,
173 memory_tracker_, 174 memory_tracker_,
174 new ShaderTranslatorCache, 175 new ShaderTranslatorCache,
175 feature_info.get(), 176 feature_info.get(),
176 normalized_init.bind_generates_resource)); 177 normalized_init.bind_generates_resource));
177 bool use_default_textures = normalized_init.bind_generates_resource; 178 bool use_default_textures = normalized_init.bind_generates_resource;
178 179
179 InSequence sequence; 180 InSequence sequence;
180 181
181 surface_ = new gfx::GLSurfaceStub; 182 surface_ = new gfx::GLSurfaceStub;
182 surface_->SetSize(gfx::Size(kBackBufferWidth, kBackBufferHeight)); 183 surface_->SetSize(gfx::Size(kBackBufferWidth, kBackBufferHeight));
(...skipping 1487 matching lines...) Expand 10 before | Expand all | Expand 10 after
1670 SetupDefaultProgram(); 1671 SetupDefaultProgram();
1671 } 1672 }
1672 1673
1673 // Include the auto-generated part of this file. We split this because it means 1674 // Include the auto-generated part of this file. We split this because it means
1674 // we can easily edit the non-auto generated parts right here in this file 1675 // we can easily edit the non-auto generated parts right here in this file
1675 // instead of having to edit some template or the code generator. 1676 // instead of having to edit some template or the code generator.
1676 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h" 1677 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h"
1677 1678
1678 } // namespace gles2 1679 } // namespace gles2
1679 } // namespace gpu 1680 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698