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

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

Issue 1711533002: Decouple browser-specific GPU IPC messages from GPU service IPCs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Mac 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
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 ea8a8fdd72615eb52236eecea91da4d675d54516..461ea3c07fb48020422a80a930754a55946863fd 100644
--- a/content/common/gpu/image_transport_surface_overlay_mac.mm
+++ b/content/common/gpu/image_transport_surface_overlay_mac.mm
@@ -22,6 +22,8 @@ typedef void* GLeglImageOES;
#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"
piman 2016/02/24 00:58:37 nit: Is this still needed?
Fady Samuel 2016/02/24 01:42:30 Done.
@@ -309,7 +311,7 @@ void ImageTransportSurfaceOverlayMac::DisplayFirstPendingSwapImmediately() {
}
// Send acknowledgement to the browser.
- GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params params;
+ AcceleratedSurfaceBuffersSwappedParams params;
if (use_remote_layer_api_) {
params.ca_context_id = [ca_context_ contextId];
} else if (current_partial_damage_tree_) {
@@ -454,8 +456,8 @@ bool ImageTransportSurfaceOverlayMac::IsSurfaceless() const {
return true;
}
-void ImageTransportSurfaceOverlayMac::OnBufferPresented(
- const AcceleratedSurfaceMsg_BufferPresented_Params& params) {
+void ImageTransportSurfaceOverlayMac::BufferPresented(
+ const BufferPresentedParams& params) {
vsync_timebase_ = params.vsync_timebase;
vsync_interval_ = params.vsync_interval;
vsync_parameters_valid_ = (vsync_interval_ != base::TimeDelta());

Powered by Google App Engine
This is Rietveld 408576698