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

Side by Side Diff: components/display_compositor/gl_helper_benchmark.cc

Issue 1998723002: Move code in ui/gl/* from gfx:: to gl:: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 6 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
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 // This file looks like a unit test, but it contains benchmarks and test 5 // This file looks like a unit test, but it contains benchmarks and test
6 // utilities intended for manual evaluation of the scalers in 6 // utilities intended for manual evaluation of the scalers in
7 // gl_helper*. These tests produce output in the form of files and printouts, 7 // gl_helper*. These tests produce output in the form of files and printouts,
8 // but cannot really "fail". There is no point in making these tests part 8 // but cannot really "fail". There is no point in making these tests part
9 // of any test automation run. 9 // of any test automation run.
10 10
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 attributes.sample_buffers = 1; 65 attributes.sample_buffers = 1;
66 attributes.bind_generates_resource = false; 66 attributes.bind_generates_resource = false;
67 67
68 context_.reset(gpu::GLInProcessContext::Create( 68 context_.reset(gpu::GLInProcessContext::Create(
69 nullptr, /* service */ 69 nullptr, /* service */
70 nullptr, /* surface */ 70 nullptr, /* surface */
71 true, /* offscreen */ 71 true, /* offscreen */
72 gfx::kNullAcceleratedWidget, /* window */ 72 gfx::kNullAcceleratedWidget, /* window */
73 gfx::Size(1, 1), /* size */ 73 gfx::Size(1, 1), /* size */
74 nullptr, /* share_context */ 74 nullptr, /* share_context */
75 attributes, gfx::PreferDiscreteGpu, gpu::SharedMemoryLimits(), 75 attributes, gl::PreferDiscreteGpu, gpu::SharedMemoryLimits(),
76 nullptr, /* gpu_memory_buffer_manager */ 76 nullptr, /* gpu_memory_buffer_manager */
77 nullptr /* image_factory */)); 77 nullptr /* image_factory */));
78 gl_ = context_->GetImplementation(); 78 gl_ = context_->GetImplementation();
79 gpu::ContextSupport* support = context_->GetImplementation(); 79 gpu::ContextSupport* support = context_->GetImplementation();
80 80
81 helper_.reset(new display_compositor::GLHelper(gl_, support)); 81 helper_.reset(new display_compositor::GLHelper(gl_, support));
82 helper_scaling_.reset( 82 helper_scaling_.reset(
83 new display_compositor::GLHelperScaling(gl_, helper_.get())); 83 new display_compositor::GLHelperScaling(gl_, helper_.get()));
84 } 84 }
85 85
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 kQualityNames[q], percents[p]); 243 kQualityNames[q], percents[p]);
244 VLOG(0) << "Writing " << filename; 244 VLOG(0) << "Writing " << filename;
245 SaveToFile(&output_pixels, base::FilePath::FromUTF8Unsafe(filename)); 245 SaveToFile(&output_pixels, base::FilePath::FromUTF8Unsafe(filename));
246 } 246 }
247 } 247 }
248 gl_->DeleteTextures(1, &src_texture); 248 gl_->DeleteTextures(1, &src_texture);
249 gl_->DeleteFramebuffers(1, &framebuffer); 249 gl_->DeleteFramebuffers(1, &framebuffer);
250 } 250 }
251 251
252 } // namespace display_compositor 252 } // namespace display_compositor
OLDNEW
« no previous file with comments | « components/display_compositor/display_compositor_test_suite.cc ('k') | components/display_compositor/gl_helper_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698