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

Unified Diff: gpu/ipc/service/image_transport_surface_overlay_mac.h

Issue 1962493002: Make Mac swap code like other platforms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporate review feedback Created 4 years, 7 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 | « gpu/ipc/service/gpu_command_buffer_stub.cc ('k') | gpu/ipc/service/image_transport_surface_overlay_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/service/image_transport_surface_overlay_mac.h
diff --git a/gpu/ipc/service/image_transport_surface_overlay_mac.h b/gpu/ipc/service/image_transport_surface_overlay_mac.h
index 78886dd7f3cc62d833c89ae943f31fcd98b11fcb..eba464569eb1be021c2887dc60737d0825700414 100644
--- a/gpu/ipc/service/image_transport_surface_overlay_mac.h
+++ b/gpu/ipc/service/image_transport_surface_overlay_mac.h
@@ -30,8 +30,7 @@ namespace gpu {
class ImageTransportSurfaceOverlayMac : public gfx::GLSurface,
public ui::GpuSwitchingObserver {
public:
- ImageTransportSurfaceOverlayMac(GpuChannelManager* manager,
- GpuCommandBufferStub* stub,
+ ImageTransportSurfaceOverlayMac(GpuCommandBufferStub* stub,
SurfaceHandle handle);
// GLSurface implementation
@@ -72,9 +71,6 @@ class ImageTransportSurfaceOverlayMac : public gfx::GLSurface,
~ImageTransportSurfaceOverlayMac() override;
void SetLatencyInfo(const std::vector<ui::LatencyInfo>& latency_info);
- void BufferPresented(gpu::SurfaceHandle surface_handle,
- const base::TimeTicks& vsync_timebase,
- const base::TimeDelta& vsync_interval);
void SendAcceleratedSurfaceBuffersSwapped(
gpu::SurfaceHandle surface_handle,
CAContextID ca_context_id,
@@ -86,7 +82,6 @@ class ImageTransportSurfaceOverlayMac : public gfx::GLSurface,
std::vector<ui::LatencyInfo> latency_info);
gfx::SwapResult SwapBuffersInternal(const gfx::Rect& pixel_damage_rect);
- GpuChannelManager* manager_;
base::WeakPtr<GpuCommandBufferStub> stub_;
SurfaceHandle handle_;
std::vector<ui::LatencyInfo> latency_info_;
@@ -102,11 +97,6 @@ class ImageTransportSurfaceOverlayMac : public gfx::GLSurface,
// The renderer ID that all contexts made current to this surface should be
// targeting.
GLint gl_renderer_id_;
-
- // The vsync information provided by the browser.
- bool vsync_parameters_valid_;
- base::TimeTicks vsync_timebase_;
- base::TimeDelta vsync_interval_;
};
} // namespace gpu
« no previous file with comments | « gpu/ipc/service/gpu_command_buffer_stub.cc ('k') | gpu/ipc/service/image_transport_surface_overlay_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698