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

Unified Diff: gpu/ipc/client/command_buffer_proxy_impl.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/client/BUILD.gn ('k') | gpu/ipc/client/command_buffer_proxy_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/client/command_buffer_proxy_impl.h
diff --git a/gpu/ipc/client/command_buffer_proxy_impl.h b/gpu/ipc/client/command_buffer_proxy_impl.h
index f036aa0fb2fba1257928509fef1bbc671902425d..6c5ed2d1e9e6e45e5c76ecf72506df97930ecce3 100644
--- a/gpu/ipc/client/command_buffer_proxy_impl.h
+++ b/gpu/ipc/client/command_buffer_proxy_impl.h
@@ -33,12 +33,14 @@
#include "ui/gfx/swap_result.h"
struct GPUCommandBufferConsoleMessage;
+struct GpuCommandBufferMsg_SwapBuffersCompleted_Params;
namespace base {
class SharedMemory;
}
namespace gpu {
+struct GpuProcessHostedCALayerTreeParamsMac;
struct Mailbox;
struct SyncToken;
}
@@ -127,9 +129,10 @@ class GPU_EXPORT CommandBufferProxyImpl
void SetOnConsoleMessageCallback(const GpuConsoleMessageCallback& callback);
void SetLatencyInfo(const std::vector<ui::LatencyInfo>& latency_info);
- using SwapBuffersCompletionCallback =
- base::Callback<void(const std::vector<ui::LatencyInfo>& latency_info,
- gfx::SwapResult result)>;
+ using SwapBuffersCompletionCallback = base::Callback<void(
+ const std::vector<ui::LatencyInfo>& latency_info,
+ gfx::SwapResult result,
+ const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac)>;
void SetSwapBuffersCompletionCallback(
const SwapBuffersCompletionCallback& callback);
@@ -177,8 +180,8 @@ class GPU_EXPORT CommandBufferProxyImpl
gpu::error::Error error);
void OnConsoleMessage(const GPUCommandBufferConsoleMessage& message);
void OnSignalAck(uint32_t id);
- void OnSwapBuffersCompleted(const std::vector<ui::LatencyInfo>& latency_info,
- gfx::SwapResult result);
+ void OnSwapBuffersCompleted(
+ const GpuCommandBufferMsg_SwapBuffersCompleted_Params& params);
void OnUpdateVSyncParameters(base::TimeTicks timebase,
base::TimeDelta interval);
« no previous file with comments | « gpu/ipc/client/BUILD.gn ('k') | gpu/ipc/client/command_buffer_proxy_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698