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

Unified Diff: content/test/mock_render_thread.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.h ('k') | content/test/render_view_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/mock_render_thread.cc
diff --git a/content/test/mock_render_thread.cc b/content/test/mock_render_thread.cc
index 70de43e3d8e77c855acdeb37ae58f490f1cd919d..e52fd852ac170bc7d280cc4408d1d792b7dfb266 100644
--- a/content/test/mock_render_thread.cc
+++ b/content/test/mock_render_thread.cc
@@ -13,7 +13,7 @@
namespace content {
MockRenderThread::MockRenderThread()
- : routing_id_(0), opener_id_(0) {
+ : routing_id_(0), surface_id_(0), opener_id_(0) {
}
MockRenderThread::~MockRenderThread() {
@@ -169,9 +169,11 @@ void MockRenderThread::SendCloseMessage() {
// The Widget expects to be returned valid route_id.
void MockRenderThread::OnMsgCreateWidget(int opener_id,
WebKit::WebPopupType popup_type,
- int* route_id) {
+ int* route_id,
+ int* surface_id) {
opener_id_ = opener_id;
*route_id = routing_id_;
+ *surface_id = surface_id_;
}
bool MockRenderThread::OnMessageReceived(const IPC::Message& msg) {
« no previous file with comments | « content/test/mock_render_thread.h ('k') | content/test/render_view_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698