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

Unified Diff: content/test/mock_render_thread.h

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/renderer/render_widget_fullscreen_pepper.cc ('k') | content/test/mock_render_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/mock_render_thread.h
diff --git a/content/test/mock_render_thread.h b/content/test/mock_render_thread.h
index 3d87ed084ff02504912beaf25048d2f79231dda5..a6f0fe5d3dd5fab42cd2611a5e8121be3cf4b4c3 100644
--- a/content/test/mock_render_thread.h
+++ b/content/test/mock_render_thread.h
@@ -78,6 +78,10 @@ class MockRenderThread : public content::RenderThread {
routing_id_ = id;
}
+ void set_surface_id(int32 id) {
+ surface_id_ = id;
+ }
+
int32 opener_id() const {
return opener_id_;
}
@@ -99,7 +103,8 @@ class MockRenderThread : public content::RenderThread {
// The Widget expects to be returned valid route_id.
void OnMsgCreateWidget(int opener_id,
WebKit::WebPopupType popup_type,
- int* route_id);
+ int* route_id,
+ int* surface_id);
#if defined(OS_WIN)
void OnDuplicateSection(base::SharedMemoryHandle renderer_handle,
@@ -111,6 +116,9 @@ class MockRenderThread : public content::RenderThread {
// Routing id what will be assigned to the Widget.
int32 routing_id_;
+ // Surface id what will be assigned to the Widget.
+ int32 surface_id_;
+
// Opener id reported by the Widget.
int32 opener_id_;
« no previous file with comments | « content/renderer/render_widget_fullscreen_pepper.cc ('k') | content/test/mock_render_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698