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

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: Restored if guards on GpuChannelManager 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 ea8a8fdd72615eb52236eecea91da4d675d54516..05f65120ad81bdcb4922874f7a6c6a6820aea823 100644
--- a/content/common/gpu/image_transport_surface_overlay_mac.mm
+++ b/content/common/gpu/image_transport_surface_overlay_mac.mm
@@ -22,9 +22,10 @@ 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"
#include "ui/accelerated_widget_mac/io_surface_context.h"
#include "ui/base/cocoa/animation_utils.h"
#include "ui/base/cocoa/remote_layer_api.h"
@@ -309,7 +310,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 +455,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());
« 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