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

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

Issue 1545243002: Convert Pass()→std::move() in //content/browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/compositor/buffer_queue_unittest.cc
diff --git a/content/browser/compositor/buffer_queue_unittest.cc b/content/browser/compositor/buffer_queue_unittest.cc
index 0ec17963837436686e898d4c1b58f1884caf4454..323d7ae8fd2d74d943cf9fa7032ffd4194d67337 100644
--- a/content/browser/compositor/buffer_queue_unittest.cc
+++ b/content/browser/compositor/buffer_queue_unittest.cc
@@ -2,14 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "content/browser/compositor/buffer_queue.h"
+
#include <stddef.h>
#include <stdint.h>
-
#include <set>
+#include <utility>
#include "cc/test/test_context_provider.h"
#include "cc/test/test_web_graphics_context_3d.h"
-#include "content/browser/compositor/buffer_queue.h"
#include "content/browser/compositor/gpu_surfaceless_browser_compositor_output_surface.h"
#include "content/browser/gpu/browser_gpu_memory_buffer_manager.h"
#include "content/common/gpu/client/gl_helper.h"
@@ -95,7 +96,7 @@ class BufferQueueTest : public ::testing::Test {
void InitWithContext(scoped_ptr<cc::TestWebGraphicsContext3D> context) {
scoped_refptr<cc::TestContextProvider> context_provider =
- cc::TestContextProvider::Create(context.Pass());
+ cc::TestContextProvider::Create(std::move(context));
context_provider->BindToCurrentThread();
gpu_memory_buffer_manager_.reset(new StubBrowserGpuMemoryBufferManager);
mock_output_surface_ =
@@ -236,7 +237,7 @@ scoped_ptr<BufferQueue> CreateOutputSurfaceWithMock(
new BufferQueue(context_provider, target, GL_RGBA, nullptr,
gpu_memory_buffer_manager, 1));
buffer_queue->Initialize();
- return buffer_queue.Pass();
+ return buffer_queue;
}
TEST(BufferQueueStandaloneTest, FboInitialization) {
« no previous file with comments | « content/browser/compositor/browser_compositor_output_surface.cc ('k') | content/browser/compositor/delegated_frame_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698