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

Unified Diff: content/common/gpu/image_transport_surface_overlay_mac.mm

Issue 1730023004: Revert of Decouple browser-specific GPU IPC messages from GPU service IPCs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/gpu/image_transport_surface_overlay_mac.h ('k') | content/content_common.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/image_transport_surface_overlay_mac.mm
diff --git a/content/common/gpu/image_transport_surface_overlay_mac.mm b/content/common/gpu/image_transport_surface_overlay_mac.mm
index 05f65120ad81bdcb4922874f7a6c6a6820aea823..ea8a8fdd72615eb52236eecea91da4d675d54516 100644
--- a/content/common/gpu/image_transport_surface_overlay_mac.mm
+++ b/content/common/gpu/image_transport_surface_overlay_mac.mm
@@ -22,10 +22,9 @@
#include "base/mac/scoped_cftyperef.h"
#include "base/trace_event/trace_event.h"
-#include "content/common/gpu/accelerated_surface_buffers_swapped_params_mac.h"
-#include "content/common/gpu/buffer_presented_params_mac.h"
#include "content/common/gpu/ca_layer_partial_damage_tree_mac.h"
#include "content/common/gpu/ca_layer_tree_mac.h"
+#include "content/common/gpu/gpu_messages.h"
#include "ui/accelerated_widget_mac/io_surface_context.h"
#include "ui/base/cocoa/animation_utils.h"
#include "ui/base/cocoa/remote_layer_api.h"
@@ -310,7 +309,7 @@
}
// Send acknowledgement to the browser.
- AcceleratedSurfaceBuffersSwappedParams params;
+ GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params params;
if (use_remote_layer_api_) {
params.ca_context_id = [ca_context_ contextId];
} else if (current_partial_damage_tree_) {
@@ -455,8 +454,8 @@
return true;
}
-void ImageTransportSurfaceOverlayMac::BufferPresented(
- const BufferPresentedParams& params) {
+void ImageTransportSurfaceOverlayMac::OnBufferPresented(
+ const AcceleratedSurfaceMsg_BufferPresented_Params& params) {
vsync_timebase_ = params.vsync_timebase;
vsync_interval_ = params.vsync_interval;
vsync_parameters_valid_ = (vsync_interval_ != base::TimeDelta());
« no previous file with comments | « content/common/gpu/image_transport_surface_overlay_mac.h ('k') | content/content_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698