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

Unified Diff: ui/compositor/test/in_process_context_factory.cc

Issue 853353003: ui/compositor: Provide its own 'in process' ContextProvider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove GrContextForWebGraphicsContext3D usage Created 5 years, 11 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
Index: ui/compositor/test/in_process_context_factory.cc
diff --git a/ui/compositor/test/in_process_context_factory.cc b/ui/compositor/test/in_process_context_factory.cc
index e47181415a4d55d30435e8160900f50f19957a6a..6647115bcd003c1201d95406c3045714bb3ad4fe 100644
--- a/ui/compositor/test/in_process_context_factory.cc
+++ b/ui/compositor/test/in_process_context_factory.cc
@@ -18,9 +18,9 @@
#include "gpu/command_buffer/client/gles2_interface.h"
#include "ui/compositor/compositor_switches.h"
#include "ui/compositor/reflector.h"
+#include "ui/compositor/test/in_process_context_provider.h"
#include "ui/gl/gl_implementation.h"
#include "ui/gl/gl_surface.h"
-#include "webkit/common/gpu/context_provider_in_process.h"
namespace ui {
namespace {
@@ -99,9 +99,8 @@ void InProcessContextFactory::CreateOutputSurface(
attrs, lose_context_when_out_of_memory, compositor->widget()));
CHECK(context3d);
- using webkit::gpu::ContextProviderInProcess;
- scoped_refptr<ContextProviderInProcess> context_provider =
- ContextProviderInProcess::Create(context3d.Pass(), "UICompositor");
+ scoped_refptr<InProcessContextProvider> context_provider =
+ InProcessContextProvider::Create(context3d.Pass(), "UICompositor");
if (use_test_surface_) {
bool flipped_output_surface = false;
@@ -129,9 +128,8 @@ InProcessContextFactory::SharedMainThreadContextProvider() {
return shared_main_thread_contexts_;
bool lose_context_when_out_of_memory = false;
- shared_main_thread_contexts_ =
- webkit::gpu::ContextProviderInProcess::CreateOffscreen(
- lose_context_when_out_of_memory);
+ shared_main_thread_contexts_ = InProcessContextProvider::CreateOffscreen(
+ lose_context_when_out_of_memory);
if (shared_main_thread_contexts_.get() &&
!shared_main_thread_contexts_->BindToCurrentThread())
shared_main_thread_contexts_ = NULL;

Powered by Google App Engine
This is Rietveld 408576698