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

Unified Diff: content/browser/renderer_host/render_widget_host_impl.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
Index: content/browser/renderer_host/render_widget_host_impl.cc
===================================================================
--- content/browser/renderer_host/render_widget_host_impl.cc (revision 171661)
+++ content/browser/renderer_host/render_widget_host_impl.cc (working copy)
@@ -1530,7 +1530,7 @@
if (!view_) {
RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id,
gpu_process_host_id,
- surface_handle,
+ false,
0);
return;
}
@@ -2310,11 +2310,11 @@
// static
void RenderWidgetHostImpl::AcknowledgeBufferPresent(
- int32 route_id, int gpu_host_id, uint64 surface_handle, uint32 sync_point) {
+ int32 route_id, int gpu_host_id, bool presented, uint32 sync_point) {
GpuProcessHostUIShim* ui_shim = GpuProcessHostUIShim::FromID(gpu_host_id);
if (ui_shim)
ui_shim->Send(new AcceleratedSurfaceMsg_BufferPresented(route_id,
- surface_handle,
+ presented,
sync_point));
}
@@ -2337,6 +2337,18 @@
#endif
}
+// static
+void RenderWidgetHostImpl::SendFrontSurfaceIsProtected(
+ bool is_protected,
+ uint32 protection_state_id,
+ int32 route_id,
+ int gpu_host_id) {
+ GpuProcessHostUIShim* ui_shim = GpuProcessHostUIShim::FromID(gpu_host_id);
+ if (ui_shim) {
+ ui_shim->Send(new AcceleratedSurfaceMsg_SetFrontSurfaceIsProtected(
+ route_id, is_protected, protection_state_id));
+ }
+}
#endif
void RenderWidgetHostImpl::DelayedAutoResized() {

Powered by Google App Engine
This is Rietveld 408576698