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

Unified Diff: gpu/ipc/service/gpu_channel_test_common.cc

Issue 1845563005: Refactor content/common/gpu into gpu/ipc/service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Drop ref to deleted content_tests_gypi_values.content_unittests_ozone_sources 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 | « gpu/ipc/service/gpu_channel_test_common.h ('k') | gpu/ipc/service/gpu_channel_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/service/gpu_channel_test_common.cc
diff --git a/content/common/gpu/gpu_channel_test_common.cc b/gpu/ipc/service/gpu_channel_test_common.cc
similarity index 87%
rename from content/common/gpu/gpu_channel_test_common.cc
rename to gpu/ipc/service/gpu_channel_test_common.cc
index fe6f700014dca4e232da161ef52cd0e9b759b2bf..ae2021245fbd3a7238e9af17c5814965d1aef89f 100644
--- a/content/common/gpu/gpu_channel_test_common.cc
+++ b/gpu/ipc/service/gpu_channel_test_common.cc
@@ -2,16 +2,16 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "content/common/gpu/gpu_channel_test_common.h"
+#include "gpu/ipc/service/gpu_channel_test_common.h"
#include "base/test/test_simple_task_runner.h"
#include "base/thread_task_runner_handle.h"
-#include "content/common/gpu/gpu_channel_manager_delegate.h"
#include "gpu/command_buffer/service/sync_point_manager.h"
+#include "gpu/ipc/service/gpu_channel_manager_delegate.h"
#include "ipc/ipc_test_sink.h"
#include "url/gurl.h"
-namespace content {
+namespace gpu {
TestGpuChannelManagerDelegate::TestGpuChannelManagerDelegate() {}
@@ -32,11 +32,11 @@ void TestGpuChannelManagerDelegate::DidDestroyOffscreenContext(
void TestGpuChannelManagerDelegate::DidLoseContext(
bool offscreen,
- gpu::error::ContextLostReason reason,
+ error::ContextLostReason reason,
const GURL& active_url) {}
void TestGpuChannelManagerDelegate::GpuMemoryUmaStats(
- const gpu::GPUMemoryUmaStats& params) {}
+ const GPUMemoryUmaStats& params) {}
void TestGpuChannelManagerDelegate::RemoveSubscription(int32_t client_id,
unsigned int target) {}
@@ -58,16 +58,16 @@ void TestGpuChannelManagerDelegate::SendAcceleratedSurfaceBuffersSwapped(
#if defined(OS_WIN)
void TestGpuChannelManagerDelegate::SendAcceleratedSurfaceCreatedChildWindow(
- gpu::SurfaceHandle parent_window,
- gpu::SurfaceHandle child_window) {}
+ SurfaceHandle parent_window,
+ SurfaceHandle child_window) {}
#endif
TestGpuChannelManager::TestGpuChannelManager(
- const gpu::GpuPreferences& gpu_preferences,
+ const GpuPreferences& gpu_preferences,
GpuChannelManagerDelegate* delegate,
base::SingleThreadTaskRunner* task_runner,
base::SingleThreadTaskRunner* io_task_runner,
- gpu::SyncPointManager* sync_point_manager,
+ SyncPointManager* sync_point_manager,
GpuMemoryBufferFactory* gpu_memory_buffer_factory)
: GpuChannelManager(gpu_preferences,
delegate,
@@ -99,11 +99,11 @@ scoped_ptr<GpuChannel> TestGpuChannelManager::CreateGpuChannel(
}
TestGpuChannel::TestGpuChannel(GpuChannelManager* gpu_channel_manager,
- gpu::SyncPointManager* sync_point_manager,
+ SyncPointManager* sync_point_manager,
gfx::GLShareGroup* share_group,
- gpu::gles2::MailboxManager* mailbox_manager,
- gpu::PreemptionFlag* preempting_flag,
- gpu::PreemptionFlag* preempted_flag,
+ gles2::MailboxManager* mailbox_manager,
+ PreemptionFlag* preempting_flag,
+ PreemptionFlag* preempted_flag,
base::SingleThreadTaskRunner* task_runner,
base::SingleThreadTaskRunner* io_task_runner,
int client_id,
@@ -148,7 +148,7 @@ bool TestGpuChannel::Send(IPC::Message* msg) {
GpuChannelTestCommon::GpuChannelTestCommon()
: task_runner_(new base::TestSimpleTaskRunner),
io_task_runner_(new base::TestSimpleTaskRunner),
- sync_point_manager_(new gpu::SyncPointManager(false)),
+ sync_point_manager_(new SyncPointManager(false)),
channel_manager_delegate_(new TestGpuChannelManagerDelegate()),
channel_manager_(
new TestGpuChannelManager(gpu_preferences_,
@@ -166,4 +166,4 @@ GpuChannelTestCommon::~GpuChannelTestCommon() {
io_task_runner_->ClearPendingTasks();
}
-} // namespace content
+} // namespace gpu
« no previous file with comments | « gpu/ipc/service/gpu_channel_test_common.h ('k') | gpu/ipc/service/gpu_channel_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698