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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_gtk.cc

Issue 23694031: Fix race conditions in window snapshot code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporated enne and jbauman's feedback. Created 7 years, 3 months 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/renderer_host/render_widget_host_view_gtk.h" 5 #include "content/browser/renderer_host/render_widget_host_view_gtk.h"
6 6
7 #include <cairo/cairo.h> 7 #include <cairo/cairo.h>
8 #include <gdk/gdk.h> 8 #include <gdk/gdk.h>
9 #include <gdk/gdkkeysyms.h> 9 #include <gdk/gdkkeysyms.h>
10 #include <gdk/gdkx.h> 10 #include <gdk/gdkx.h>
(...skipping 1048 matching lines...) Expand 10 before | Expand all | Expand 10 after
1059 return false; 1059 return false;
1060 } 1060 }
1061 1061
1062 void RenderWidgetHostViewGtk::AcceleratedSurfaceBuffersSwapped( 1062 void RenderWidgetHostViewGtk::AcceleratedSurfaceBuffersSwapped(
1063 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, 1063 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params,
1064 int gpu_host_id) { 1064 int gpu_host_id) {
1065 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; 1065 AcceleratedSurfaceMsg_BufferPresented_Params ack_params;
1066 ack_params.sync_point = 0; 1066 ack_params.sync_point = 0;
1067 RenderWidgetHostImpl::AcknowledgeBufferPresent( 1067 RenderWidgetHostImpl::AcknowledgeBufferPresent(
1068 params.route_id, gpu_host_id, ack_params); 1068 params.route_id, gpu_host_id, ack_params);
1069 host_->FrameSwapped(params.latency_info); 1069 RenderWidgetHostImpl::CompositorFrameDrawn(params.latency_info);
1070 } 1070 }
1071 1071
1072 void RenderWidgetHostViewGtk::AcceleratedSurfacePostSubBuffer( 1072 void RenderWidgetHostViewGtk::AcceleratedSurfacePostSubBuffer(
1073 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, 1073 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params,
1074 int gpu_host_id) { 1074 int gpu_host_id) {
1075 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; 1075 AcceleratedSurfaceMsg_BufferPresented_Params ack_params;
1076 ack_params.sync_point = 0; 1076 ack_params.sync_point = 0;
1077 RenderWidgetHostImpl::AcknowledgeBufferPresent( 1077 RenderWidgetHostImpl::AcknowledgeBufferPresent(
1078 params.route_id, gpu_host_id, ack_params); 1078 params.route_id, gpu_host_id, ack_params);
1079 host_->FrameSwapped(params.latency_info); 1079 RenderWidgetHostImpl::CompositorFrameDrawn(params.latency_info);
1080 } 1080 }
1081 1081
1082 void RenderWidgetHostViewGtk::AcceleratedSurfaceSuspend() { 1082 void RenderWidgetHostViewGtk::AcceleratedSurfaceSuspend() {
1083 } 1083 }
1084 1084
1085 void RenderWidgetHostViewGtk::AcceleratedSurfaceRelease() { 1085 void RenderWidgetHostViewGtk::AcceleratedSurfaceRelease() {
1086 } 1086 }
1087 1087
1088 bool RenderWidgetHostViewGtk::HasAcceleratedSurface( 1088 bool RenderWidgetHostViewGtk::HasAcceleratedSurface(
1089 const gfx::Size& desired_size) { 1089 const gfx::Size& desired_size) {
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
1572 gfx::PluginWindowHandle id) { 1572 gfx::PluginWindowHandle id) {
1573 plugin_container_manager_.CreatePluginContainer(id); 1573 plugin_container_manager_.CreatePluginContainer(id);
1574 } 1574 }
1575 1575
1576 void RenderWidgetHostViewGtk::OnDestroyPluginContainer( 1576 void RenderWidgetHostViewGtk::OnDestroyPluginContainer(
1577 gfx::PluginWindowHandle id) { 1577 gfx::PluginWindowHandle id) {
1578 plugin_container_manager_.DestroyPluginContainer(id); 1578 plugin_container_manager_.DestroyPluginContainer(id);
1579 } 1579 }
1580 1580
1581 } // namespace content 1581 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698