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

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: Addressed Nit Created 7 years, 2 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 1051 matching lines...) Expand 10 before | Expand all | Expand 10 after
1062 return false; 1062 return false;
1063 } 1063 }
1064 1064
1065 void RenderWidgetHostViewGtk::AcceleratedSurfaceBuffersSwapped( 1065 void RenderWidgetHostViewGtk::AcceleratedSurfaceBuffersSwapped(
1066 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, 1066 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params,
1067 int gpu_host_id) { 1067 int gpu_host_id) {
1068 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; 1068 AcceleratedSurfaceMsg_BufferPresented_Params ack_params;
1069 ack_params.sync_point = 0; 1069 ack_params.sync_point = 0;
1070 RenderWidgetHostImpl::AcknowledgeBufferPresent( 1070 RenderWidgetHostImpl::AcknowledgeBufferPresent(
1071 params.route_id, gpu_host_id, ack_params); 1071 params.route_id, gpu_host_id, ack_params);
1072 host_->FrameSwapped(params.latency_info); 1072 RenderWidgetHostImpl::CompositorFrameDrawn(params.latency_info);
1073 } 1073 }
1074 1074
1075 void RenderWidgetHostViewGtk::AcceleratedSurfacePostSubBuffer( 1075 void RenderWidgetHostViewGtk::AcceleratedSurfacePostSubBuffer(
1076 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, 1076 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params,
1077 int gpu_host_id) { 1077 int gpu_host_id) {
1078 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; 1078 AcceleratedSurfaceMsg_BufferPresented_Params ack_params;
1079 ack_params.sync_point = 0; 1079 ack_params.sync_point = 0;
1080 RenderWidgetHostImpl::AcknowledgeBufferPresent( 1080 RenderWidgetHostImpl::AcknowledgeBufferPresent(
1081 params.route_id, gpu_host_id, ack_params); 1081 params.route_id, gpu_host_id, ack_params);
1082 host_->FrameSwapped(params.latency_info); 1082 RenderWidgetHostImpl::CompositorFrameDrawn(params.latency_info);
1083 } 1083 }
1084 1084
1085 void RenderWidgetHostViewGtk::AcceleratedSurfaceSuspend() { 1085 void RenderWidgetHostViewGtk::AcceleratedSurfaceSuspend() {
1086 } 1086 }
1087 1087
1088 void RenderWidgetHostViewGtk::AcceleratedSurfaceRelease() { 1088 void RenderWidgetHostViewGtk::AcceleratedSurfaceRelease() {
1089 } 1089 }
1090 1090
1091 bool RenderWidgetHostViewGtk::HasAcceleratedSurface( 1091 bool RenderWidgetHostViewGtk::HasAcceleratedSurface(
1092 const gfx::Size& desired_size) { 1092 const gfx::Size& desired_size) {
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
1576 gfx::PluginWindowHandle id) { 1576 gfx::PluginWindowHandle id) {
1577 plugin_container_manager_.CreatePluginContainer(id); 1577 plugin_container_manager_.CreatePluginContainer(id);
1578 } 1578 }
1579 1579
1580 void RenderWidgetHostViewGtk::OnDestroyPluginContainer( 1580 void RenderWidgetHostViewGtk::OnDestroyPluginContainer(
1581 gfx::PluginWindowHandle id) { 1581 gfx::PluginWindowHandle id) {
1582 plugin_container_manager_.DestroyPluginContainer(id); 1582 plugin_container_manager_.DestroyPluginContainer(id);
1583 } 1583 }
1584 1584
1585 } // namespace content 1585 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.cc ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698