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

Unified Diff: components/mus/surfaces/surfaces_context_provider.h

Issue 2049083002: Implement MusGpuMemoryBufferManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update the mojom document Created 4 years, 6 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: components/mus/surfaces/surfaces_context_provider.h
diff --git a/components/mus/surfaces/surfaces_context_provider.h b/components/mus/surfaces/surfaces_context_provider.h
index 9a048a5cdb71915b19b899363a21df59398119f1..8263d1e2944584a856f609c99cc890eeb49dab00 100644
--- a/components/mus/surfaces/surfaces_context_provider.h
+++ b/components/mus/surfaces/surfaces_context_provider.h
@@ -19,6 +19,7 @@
namespace gpu {
class CommandBufferProxyImpl;
+struct GpuProcessHostedCALayerTreeParamsMac;
class TransferBuffer;
namespace gles2 {
@@ -28,6 +29,10 @@ class GLES2Implementation;
} // namespace gpu
+namespace ui {
+class LatencyInfo;
+}
+
namespace mus {
class CommandBufferDriver;
@@ -70,6 +75,14 @@ class SurfacesContextProvider : public cc::ContextProvider,
void UpdateVSyncParameters(int64_t timebase, int64_t interval) override;
void GpuCompletedSwapBuffers(gfx::SwapResult result) override;
+ // Callbacks for CommandBufferProxyImpl:
+ void OnGpuSwapBuffersCompleted(
+ const std::vector<ui::LatencyInfo>& latency_info,
+ gfx::SwapResult result,
+ const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac);
+ void OnUpdateVSyncParameters(base::TimeTicks timebase,
+ base::TimeDelta interval);
+
bool use_chrome_gpu_command_buffer_;
// From GLES2Context:
@@ -85,7 +98,6 @@ class SurfacesContextProvider : public cc::ContextProvider,
gfx::AcceleratedWidget widget_;
CommandBufferLocal* command_buffer_local_;
std::unique_ptr<gpu::CommandBufferProxyImpl> command_buffer_proxy_impl_;
-
gl::GLSurface::SwapCompletionCallback swap_buffers_completion_callback_;
DISALLOW_COPY_AND_ASSIGN(SurfacesContextProvider);
« no previous file with comments | « components/mus/surfaces/direct_output_surface_ozone.cc ('k') | components/mus/surfaces/surfaces_context_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698