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

Unified Diff: ui/accelerated_widget_mac/accelerated_widget_mac.h

Issue 1416363002: Mac: Always use surfaceless mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add export Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/content_common.gypi ('k') | ui/accelerated_widget_mac/accelerated_widget_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/accelerated_widget_mac/accelerated_widget_mac.h
diff --git a/ui/accelerated_widget_mac/accelerated_widget_mac.h b/ui/accelerated_widget_mac/accelerated_widget_mac.h
index 6d05c7916f9904dcf72968eaeb72d33a8d3f4fd5..e5fd631d76e1ac48100279a7e79c1d44314219c0 100644
--- a/ui/accelerated_widget_mac/accelerated_widget_mac.h
+++ b/ui/accelerated_widget_mac/accelerated_widget_mac.h
@@ -10,6 +10,7 @@
#include "base/mac/scoped_cftyperef.h"
#include "ui/accelerated_widget_mac/accelerated_widget_mac_export.h"
+#include "ui/accelerated_widget_mac/surface_handle_types.h"
#include "ui/events/latency_info.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/size.h"
@@ -79,13 +80,13 @@ class ACCELERATED_WIDGET_MAC_EXPORT AcceleratedWidgetMac {
void BeginPumpingFrames();
void EndPumpingFrames();
- void GotAcceleratedFrame(
- uint64 surface_handle,
- const std::vector<ui::LatencyInfo>& latency_info,
- const gfx::Size& pixel_size,
- float scale_factor,
- const gfx::Rect& pixel_damage_rect,
- const base::Closure& drawn_callback);
+ void GotAcceleratedFrame(CAContextID ca_context_id,
+ base::ScopedCFTypeRef<IOSurfaceRef> io_surface,
+ const std::vector<ui::LatencyInfo>& latency_info,
+ const gfx::Size& pixel_size,
+ float scale_factor,
+ const gfx::Rect& pixel_damage_rect,
+ const base::Closure& drawn_callback);
void GotIOSurfaceFrame(base::ScopedCFTypeRef<IOSurfaceRef> io_surface,
const gfx::Size& pixel_size,
@@ -97,9 +98,10 @@ class ACCELERATED_WIDGET_MAC_EXPORT AcceleratedWidgetMac {
const gfx::Size& pixel_size,
float scale_factor);
- void GotAcceleratedIOSurfaceFrame(IOSurfaceID io_surface_id,
- const gfx::Size& pixel_size,
- float scale_factor);
+ void GotAcceleratedIOSurfaceFrame(
+ base::ScopedCFTypeRef<IOSurfaceRef> io_surface,
+ const gfx::Size& pixel_size,
+ float scale_factor);
void AcknowledgeAcceleratedFrame();
@@ -153,14 +155,18 @@ class ACCELERATED_WIDGET_MAC_EXPORT AcceleratedWidgetMac {
ACCELERATED_WIDGET_MAC_EXPORT
void AcceleratedWidgetMacGotAcceleratedFrame(
- gfx::AcceleratedWidget widget, uint64 surface_handle,
+ gfx::AcceleratedWidget widget,
+ CAContextID ca_context_id,
+ base::ScopedCFTypeRef<IOSurfaceRef> io_surface,
const std::vector<ui::LatencyInfo>& latency_info,
const gfx::Size& pixel_size,
float scale_factor,
const gfx::Rect& pixel_damage_rect,
const base::Closure& drawn_callback,
- bool* disable_throttling, int* renderer_id,
- base::TimeTicks* vsync_timebase, base::TimeDelta* vsync_interval);
+ bool* disable_throttling,
+ int* renderer_id,
+ base::TimeTicks* vsync_timebase,
+ base::TimeDelta* vsync_interval);
ACCELERATED_WIDGET_MAC_EXPORT
void AcceleratedWidgetMacGotIOSurfaceFrame(
« no previous file with comments | « content/content_common.gypi ('k') | ui/accelerated_widget_mac/accelerated_widget_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698