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

Unified Diff: content/test/layouttest_support.cc

Issue 2584363002: gpu: Move ContextProviderCommandBuffer into mus gpu client-lib. (Closed)
Patch Set: tot merge Created 4 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
« no previous file with comments | « content/test/DEPS ('k') | services/ui/public/cpp/gpu/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/layouttest_support.cc
diff --git a/content/test/layouttest_support.cc b/content/test/layouttest_support.cc
index 7c75ed0d574b02d9bd6a2c6be1c4d42fcf3c6739..3c046670765cfedb80e5e974a9cc824910359a70 100644
--- a/content/test/layouttest_support.cc
+++ b/content/test/layouttest_support.cc
@@ -22,7 +22,6 @@
#include "content/browser/bluetooth/bluetooth_device_chooser_controller.h"
#include "content/browser/renderer_host/render_process_host_impl.h"
#include "content/browser/renderer_host/render_widget_host_impl.h"
-#include "content/common/gpu/client/context_provider_command_buffer.h"
#include "content/common/renderer.mojom.h"
#include "content/common/site_isolation_policy.h"
#include "content/public/common/page_state.h"
@@ -40,6 +39,7 @@
#include "content/renderer/renderer_blink_platform_impl.h"
#include "content/shell/common/shell_switches.h"
#include "gpu/ipc/service/image_transport_surface.h"
+#include "services/ui/public/cpp/gpu/context_provider_command_buffer.h"
#include "third_party/WebKit/public/platform/WebFloatRect.h"
#include "third_party/WebKit/public/platform/WebGamepads.h"
#include "third_party/WebKit/public/platform/WebInputEvent.h"
@@ -391,14 +391,15 @@ class LayoutTestDependenciesImpl : public LayoutTestDependencies,
const bool automatic_flushes = false;
const bool support_locking = false;
- auto context_provider = make_scoped_refptr(new ContextProviderCommandBuffer(
- gpu_channel_, gpu::GPU_STREAM_DEFAULT, gpu::GpuStreamPriority::NORMAL,
- gpu::kNullSurfaceHandle,
- GURL("chrome://gpu/"
- "LayoutTestDependenciesImpl::CreateOutputSurface"),
- automatic_flushes, support_locking, gpu::SharedMemoryLimits(),
- attributes, nullptr,
- command_buffer_metrics::OFFSCREEN_CONTEXT_FOR_TESTING));
+ auto context_provider =
+ make_scoped_refptr(new ui::ContextProviderCommandBuffer(
+ gpu_channel_, gpu::GPU_STREAM_DEFAULT,
+ gpu::GpuStreamPriority::NORMAL, gpu::kNullSurfaceHandle,
+ GURL("chrome://gpu/"
+ "LayoutTestDependenciesImpl::CreateOutputSurface"),
+ automatic_flushes, support_locking, gpu::SharedMemoryLimits(),
+ attributes, nullptr,
+ ui::command_buffer_metrics::OFFSCREEN_CONTEXT_FOR_TESTING));
context_provider->BindToCurrentThread();
bool flipped_output_surface = false;
« no previous file with comments | « content/test/DEPS ('k') | services/ui/public/cpp/gpu/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698