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

Unified Diff: ui/compositor/test/grcontext_for_webgraphicscontext3d.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/grcontext_for_webgraphicscontext3d.cc
diff --git a/webkit/common/gpu/grcontext_for_webgraphicscontext3d.cc b/ui/compositor/test/grcontext_for_webgraphicscontext3d.cc
similarity index 94%
copy from webkit/common/gpu/grcontext_for_webgraphicscontext3d.cc
copy to ui/compositor/test/grcontext_for_webgraphicscontext3d.cc
index 92e99de460b701eefeeda5084f2915000efc7bc7..ee5c7b1e1759ca20995c64ff30e5895ba1383478 100644
--- a/webkit/common/gpu/grcontext_for_webgraphicscontext3d.cc
+++ b/ui/compositor/test/grcontext_for_webgraphicscontext3d.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "webkit/common/gpu/grcontext_for_webgraphicscontext3d.h"
+#include "ui/compositor/test/grcontext_for_webgraphicscontext3d.h"
#include "base/debug/trace_event.h"
#include "base/lazy_instance.h"
@@ -13,8 +13,7 @@
using gpu_blink::WebGraphicsContext3DImpl;
-namespace webkit {
-namespace gpu {
+namespace ui {
namespace {
@@ -37,7 +36,7 @@ void BindWebGraphicsContext3DGLContextCallback(const GrGLInterface* interface) {
interface->fCallbackData)->GetGLInterface());
}
-} // namespace anonymous
+} // namespace
GrContextForWebGraphicsContext3D::GrContextForWebGraphicsContext3D(
WebGraphicsContext3DImpl* context3d) {
@@ -88,5 +87,4 @@ void GrContextForWebGraphicsContext3D::FreeGpuResources() {
}
}
-} // namespace gpu
-} // namespace webkit
+} // namespace ui

Powered by Google App Engine
This is Rietveld 408576698