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

Unified Diff: content/common/gpu/image_transport_surface.cc

Issue 11475017: Revert 171569 as it broke some browser_tests on win_aura. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years 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/common/gpu/image_transport_surface.h ('k') | content/common/gpu/image_transport_surface_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « content/common/gpu/image_transport_surface.h ('k') | content/common/gpu/image_transport_surface_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698