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

Unified Diff: webkit/support/web_layer_tree_view_impl_for_testing.cc

Issue 20185002: ContextProvider in OutputSurface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: contextprovider: don't access Context3d() in OutputSurface contructors, it's not bound yet Created 7 years, 4 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 | « webkit/common/gpu/webkit_gpu.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/support/web_layer_tree_view_impl_for_testing.cc
diff --git a/webkit/support/web_layer_tree_view_impl_for_testing.cc b/webkit/support/web_layer_tree_view_impl_for_testing.cc
index e4b858cc460eecd52b22758cbef2586d41cfe44c..93bfcbe11c0ea754200f2e7f977eb90570bf51c1 100644
--- a/webkit/support/web_layer_tree_view_impl_for_testing.cc
+++ b/webkit/support/web_layer_tree_view_impl_for_testing.cc
@@ -8,12 +8,10 @@
#include "base/strings/string_number_conversions.h"
#include "base/synchronization/lock.h"
#include "cc/base/switches.h"
-#include "cc/debug/fake_web_graphics_context_3d.h"
+#include "cc/debug/test_context_provider.h"
#include "cc/input/input_handler.h"
#include "cc/layers/layer.h"
-#include "cc/output/context_provider.h"
#include "cc/output/output_surface.h"
-#include "cc/output/software_output_device.h"
#include "cc/trees/layer_tree_host.h"
#include "third_party/WebKit/public/platform/Platform.h"
#include "third_party/WebKit/public/platform/WebGraphicsContext3D.h"
@@ -159,11 +157,8 @@ void WebLayerTreeViewImplForTesting::ApplyScrollAndScale(
scoped_ptr<cc::OutputSurface>
WebLayerTreeViewImplForTesting::CreateOutputSurface(bool fallback) {
- scoped_ptr<cc::OutputSurface> surface;
- scoped_ptr<WebGraphicsContext3D> context3d(
- new cc::FakeWebGraphicsContext3D);
- surface.reset(new cc::OutputSurface(context3d.Pass()));
- return surface.Pass();
+ return make_scoped_ptr(
+ new cc::OutputSurface(cc::TestContextProvider::Create()));
}
void WebLayerTreeViewImplForTesting::ScheduleComposite() {
« no previous file with comments | « webkit/common/gpu/webkit_gpu.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698