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

Unified Diff: content/browser/compositor/gl_helper_benchmark.cc

Issue 1874893002: Convert //content/browser from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/compositor/gl_helper.cc ('k') | content/browser/compositor/gl_helper_scaling.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/compositor/gl_helper_benchmark.cc
diff --git a/content/browser/compositor/gl_helper_benchmark.cc b/content/browser/compositor/gl_helper_benchmark.cc
index 845d82a426421b6c65c4ca5b2bd012a4627d955f..c20ecd08d26e01cecd2057efdd3555c4f829cb27 100644
--- a/content/browser/compositor/gl_helper_benchmark.cc
+++ b/content/browser/compositor/gl_helper_benchmark.cc
@@ -110,10 +110,10 @@ class GLHelperTest : public testing::Test {
base::CloseFile(f);
}
- scoped_ptr<gpu::GLInProcessContext> context_;
+ std::unique_ptr<gpu::GLInProcessContext> context_;
gpu::gles2::GLES2Interface* gl_;
- scoped_ptr<content::GLHelper> helper_;
- scoped_ptr<content::GLHelperScaling> helper_scaling_;
+ std::unique_ptr<content::GLHelper> helper_;
+ std::unique_ptr<content::GLHelperScaling> helper_scaling_;
std::deque<GLHelperScaling::ScaleOp> x_ops_, y_ops_;
};
@@ -151,7 +151,7 @@ TEST_F(GLHelperTest, ScaleBenchmark) {
input.getPixels());
gfx::Rect src_subrect(0, 0, src_size.width(), src_size.height());
- scoped_ptr<content::GLHelper::ScalerInterface> scaler(
+ std::unique_ptr<content::GLHelper::ScalerInterface> scaler(
helper_->CreateScaler(kQualities[q], src_size, src_subrect,
dst_size, false, false));
// Scale once beforehand before we start measuring.
« no previous file with comments | « content/browser/compositor/gl_helper.cc ('k') | content/browser/compositor/gl_helper_scaling.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698