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

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

Issue 1830513003: Move AcceleratedSurfaceBuffersSwappedParams to content/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed piman's comment Created 4 years, 9 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.h
diff --git a/content/common/gpu/image_transport_surface_overlay_mac.h b/content/common/gpu/image_transport_surface_overlay_mac.h
index 4ea4cb720dabd52cfc74ddd447ac112f78f16bc0..bec141abf010812c43a0d4a4ed8e0398bd5a9824 100644
--- a/content/common/gpu/image_transport_surface_overlay_mac.h
+++ b/content/common/gpu/image_transport_surface_overlay_mac.h
@@ -12,6 +12,7 @@
#include "base/timer/timer.h"
#include "content/common/gpu/gpu_command_buffer_stub.h"
#include "content/common/gpu/image_transport_surface.h"
+#include "ui/base/cocoa/remote_layer_api.h"
#include "ui/events/latency_info.h"
#include "ui/gl/gl_surface.h"
#include "ui/gl/gpu_switching_observer.h"
@@ -23,7 +24,6 @@ namespace content {
class CALayerTree;
class CALayerPartialDamageTree;
-struct AcceleratedSurfaceBuffersSwappedParams;
struct BufferPresentedParams;
class ImageTransportSurfaceOverlayMac : public gfx::GLSurface,
@@ -76,7 +76,12 @@ class ImageTransportSurfaceOverlayMac : public gfx::GLSurface,
void SetLatencyInfo(const std::vector<ui::LatencyInfo>& latency_info);
void BufferPresented(const BufferPresentedParams& params);
void SendAcceleratedSurfaceBuffersSwapped(
- AcceleratedSurfaceBuffersSwappedParams params);
+ int32_t surface_id,
+ CAContextID ca_context_id,
+ const gfx::ScopedRefCountedIOSurfaceMachPort& io_surface,
+ const gfx::Size& size,
+ float scale_factor,
+ std::vector<ui::LatencyInfo> latency_info);
gfx::SwapResult SwapBuffersInternal(const gfx::Rect& pixel_damage_rect);
// Returns true if the front of |pending_swaps_| has completed, or has timed
« no previous file with comments | « content/common/gpu/gpu_channel_test_common.cc ('k') | content/common/gpu/image_transport_surface_overlay_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698