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

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: 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 1053 matching lines...) Expand 10 before | Expand all | Expand 10 after
1064 return false; 1064 return false;
1065 } 1065 }
1066 1066
1067 void RenderWidgetHostViewGtk::AcceleratedSurfaceBuffersSwapped( 1067 void RenderWidgetHostViewGtk::AcceleratedSurfaceBuffersSwapped(
1068 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, 1068 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params,
1069 int gpu_host_id) { 1069 int gpu_host_id) {
1070 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; 1070 AcceleratedSurfaceMsg_BufferPresented_Params ack_params;
1071 ack_params.sync_point = 0; 1071 ack_params.sync_point = 0;
1072 RenderWidgetHostImpl::AcknowledgeBufferPresent( 1072 RenderWidgetHostImpl::AcknowledgeBufferPresent(
1073 params.route_id, gpu_host_id, ack_params); 1073 params.route_id, gpu_host_id, ack_params);
1074 host_->FrameSwapped(params.latency_info); 1074 RenderWidgetHostImpl::CompositorFrameDrawn(params.latency_info);
1075 } 1075 }
1076 1076
1077 void RenderWidgetHostViewGtk::AcceleratedSurfacePostSubBuffer( 1077 void RenderWidgetHostViewGtk::AcceleratedSurfacePostSubBuffer(
1078 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, 1078 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params,
1079 int gpu_host_id) { 1079 int gpu_host_id) {
1080 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; 1080 AcceleratedSurfaceMsg_BufferPresented_Params ack_params;
1081 ack_params.sync_point = 0; 1081 ack_params.sync_point = 0;
1082 RenderWidgetHostImpl::AcknowledgeBufferPresent( 1082 RenderWidgetHostImpl::AcknowledgeBufferPresent(
1083 params.route_id, gpu_host_id, ack_params); 1083 params.route_id, gpu_host_id, ack_params);
1084 host_->FrameSwapped(params.latency_info); 1084 RenderWidgetHostImpl::CompositorFrameDrawn(params.latency_info);
1085 } 1085 }
1086 1086
1087 void RenderWidgetHostViewGtk::AcceleratedSurfaceSuspend() { 1087 void RenderWidgetHostViewGtk::AcceleratedSurfaceSuspend() {
1088 } 1088 }
1089 1089
1090 void RenderWidgetHostViewGtk::AcceleratedSurfaceRelease() { 1090 void RenderWidgetHostViewGtk::AcceleratedSurfaceRelease() {
1091 } 1091 }
1092 1092
1093 bool RenderWidgetHostViewGtk::HasAcceleratedSurface( 1093 bool RenderWidgetHostViewGtk::HasAcceleratedSurface(
1094 const gfx::Size& desired_size) { 1094 const gfx::Size& desired_size) {
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
1577 gfx::PluginWindowHandle id) { 1577 gfx::PluginWindowHandle id) {
1578 plugin_container_manager_.CreatePluginContainer(id); 1578 plugin_container_manager_.CreatePluginContainer(id);
1579 } 1579 }
1580 1580
1581 void RenderWidgetHostViewGtk::OnDestroyPluginContainer( 1581 void RenderWidgetHostViewGtk::OnDestroyPluginContainer(
1582 gfx::PluginWindowHandle id) { 1582 gfx::PluginWindowHandle id) {
1583 plugin_container_manager_.DestroyPluginContainer(id); 1583 plugin_container_manager_.DestroyPluginContainer(id);
1584 } 1584 }
1585 1585
1586 } // namespace content 1586 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698