Index: content/common/gpu/image_transport_surface.cc |
=================================================================== |
--- content/common/gpu/image_transport_surface.cc (revision 171661) |
+++ content/common/gpu/image_transport_surface.cc (working copy) |
@@ -24,6 +24,10 @@ |
ImageTransportSurface::~ImageTransportSurface() {} |
+void ImageTransportSurface::OnSetFrontSurfaceIsProtected( |
+ bool is_protected, uint32 protection_state_id) { |
+} |
+ |
void ImageTransportSurface::GetRegionsToCopy( |
const gfx::Rect& previous_damage_rect, |
const gfx::Rect& new_damage_rect, |
@@ -96,6 +100,8 @@ |
IPC_BEGIN_MESSAGE_MAP(ImageTransportHelper, message) |
IPC_MESSAGE_HANDLER(AcceleratedSurfaceMsg_BufferPresented, |
OnBufferPresented) |
+ IPC_MESSAGE_HANDLER(AcceleratedSurfaceMsg_SetFrontSurfaceIsProtected, |
+ OnSetFrontSurfaceIsProtected) |
IPC_MESSAGE_HANDLER(AcceleratedSurfaceMsg_ResizeViewACK, OnResizeViewACK); |
IPC_MESSAGE_UNHANDLED(handled = false) |
IPC_END_MESSAGE_MAP() |
@@ -206,9 +212,14 @@ |
return stub_->decoder(); |
} |
-void ImageTransportHelper::OnBufferPresented(uint64 surface_handle, |
+void ImageTransportHelper::OnSetFrontSurfaceIsProtected( |
+ bool is_protected, uint32 protection_state_id) { |
+ surface_->OnSetFrontSurfaceIsProtected(is_protected, protection_state_id); |
+} |
+ |
+void ImageTransportHelper::OnBufferPresented(bool presented, |
uint32 sync_point) { |
- surface_->OnBufferPresented(surface_handle, sync_point); |
+ surface_->OnBufferPresented(presented, sync_point); |
} |
void ImageTransportHelper::OnResizeViewACK() { |
@@ -311,7 +322,7 @@ |
} |
void PassThroughImageTransportSurface::OnBufferPresented( |
- uint64 /* surface_handle */, |
+ bool /* presented */, |
uint32 /* sync_point */) { |
DCHECK(transport_); |
helper_->SetScheduled(true); |