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

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: fix win_aura DCHECK() 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
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
index 45a1cf15a0cd164cd96048ae0d9619851a6fdc82..9ada9e8e556e2fbcbd0e9f97201a35f0c72b0748 100644
--- a/content/browser/renderer_host/render_widget_host_impl.cc
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
@@ -1512,7 +1512,7 @@ void RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwapped(
if (!view_) {
RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id,
gpu_process_host_id,
- false,
+ surface_handle,
0);
return;
}
@@ -2292,11 +2292,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));
}
@@ -2319,18 +2319,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