Index: content/renderer/pepper/pepper_graphics_2d_host.cc |
diff --git a/content/renderer/pepper/pepper_graphics_2d_host.cc b/content/renderer/pepper/pepper_graphics_2d_host.cc |
index 313110a0a3e3a37d02dc8c1367fd4fa5c610dca1..a33b994d81b29bfa42c034a3afc984e3e4d4c20c 100644 |
--- a/content/renderer/pepper/pepper_graphics_2d_host.cc |
+++ b/content/renderer/pepper/pepper_graphics_2d_host.cc |
@@ -228,8 +228,8 @@ int32_t PepperGraphics2DHost::OnResourceMessageReceived( |
OnHostMsgScroll) |
PPAPI_DISPATCH_HOST_RESOURCE_CALL(PpapiHostMsg_Graphics2D_ReplaceContents, |
OnHostMsgReplaceContents) |
- PPAPI_DISPATCH_HOST_RESOURCE_CALL_0(PpapiHostMsg_Graphics2D_Flush, |
- OnHostMsgFlush) |
+ PPAPI_DISPATCH_HOST_RESOURCE_CALL(PpapiHostMsg_Graphics2D_Flush, |
+ OnHostMsgFlush) |
PPAPI_DISPATCH_HOST_RESOURCE_CALL(PpapiHostMsg_Graphics2D_SetScale, |
OnHostMsgSetScale) |
PPAPI_DISPATCH_HOST_RESOURCE_CALL(PpapiHostMsg_Graphics2D_ReadImageData, |
@@ -500,11 +500,15 @@ int32_t PepperGraphics2DHost::OnHostMsgReplaceContents( |
} |
int32_t PepperGraphics2DHost::OnHostMsgFlush( |
- ppapi::host::HostMessageContext* context) { |
+ ppapi::host::HostMessageContext* context, |
+ const std::vector<ui::LatencyInfo>& latency_info) { |
// Don't allow more than one pending flush at a time. |
if (HasPendingFlush()) |
return PP_ERROR_INPROGRESS; |
+ if (bound_instance_) |
+ bound_instance_->AddLatencyInfo(latency_info); |
+ |
PP_Resource old_image_data = 0; |
flush_reply_context_ = context->MakeReplyMessageContext(); |
if (is_running_in_process_) |