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

Unified Diff: content/test/render_view_test.cc

Issue 9194005: gpu: reference target surfaces through a globally unique surface id. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix more tests Created 8 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
« no previous file with comments | « content/test/mock_render_thread.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/render_view_test.cc
diff --git a/content/test/render_view_test.cc b/content/test/render_view_test.cc
index 6ae13fcda22491ca93d5d4825c5bb8f30b4b80eb..01ac482ccfd1b9f764a6bdc6fffb3f25e8daa271 100644
--- a/content/test/render_view_test.cc
+++ b/content/test/render_view_test.cc
@@ -46,6 +46,7 @@ using WebKit::WebURLRequest;
namespace {
const int32 kOpenerId = 7;
const int32 kRouteId = 5;
+const int32 kSurfaceId = 42;
#if defined(USE_AURA) && defined(USE_X11)
// Converts MockKeyboard::Modifiers to ui::EventFlags.
@@ -130,6 +131,7 @@ void RenderViewTest::SetUp() {
if (!render_thread_.get())
render_thread_.reset(new MockRenderThread());
render_thread_->set_routing_id(kRouteId);
+ render_thread_->set_surface_id(kSurfaceId);
command_line_.reset(new CommandLine(CommandLine::NO_PROGRAM));
params_.reset(new content::MainFunctionParams(*command_line_));
@@ -151,6 +153,7 @@ void RenderViewTest::SetUp() {
WebPreferences(),
new SharedRenderViewCounter(0),
kRouteId,
+ kSurfaceId,
kInvalidSessionStorageNamespaceId,
string16(),
1);
« no previous file with comments | « content/test/mock_render_thread.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698