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

Unified Diff: content/browser/renderer_host/render_widget_host_impl.cc

Issue 11194042: Implement TextureImageTransportSurface using texture mailbox (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased, fixed post sub buffer, use multiple mailbox names Created 8 years, 1 month 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
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
index 456110a89a4f7291a87d8c6ac5489272caacac50..d0a9251cbf2eca34ca4f1983b98a6233fad195bb 100644
--- a/content/browser/renderer_host/render_widget_host_impl.cc
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
@@ -1439,7 +1439,7 @@ void RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwapped(
if (!view_) {
RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id,
gpu_process_host_id,
- false,
+ surface_handle,
0);
return;
}
@@ -2204,11 +2204,11 @@ bool RenderWidgetHostImpl::GotResponseToLockMouseRequest(bool allowed) {
// static
void RenderWidgetHostImpl::AcknowledgeBufferPresent(
- int32 route_id, int gpu_host_id, bool presented, uint32 sync_point) {
+ int32 route_id, int gpu_host_id, uint64 surface_handle, uint32 sync_point) {
GpuProcessHostUIShim* ui_shim = GpuProcessHostUIShim::FromID(gpu_host_id);
if (ui_shim)
ui_shim->Send(new AcceleratedSurfaceMsg_BufferPresented(route_id,
- presented,
+ surface_handle,
sync_point));
}
@@ -2231,18 +2231,6 @@ void RenderWidgetHostImpl::ParentChanged(gfx::NativeViewId new_parent) {
#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