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

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

Issue 636003002: Clean up GPU back-pressure with remote CALayers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: O(1) more compile issue Created 6 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/common/gpu/gpu_messages.h ('k') | content/common/gpu/image_transport_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/image_transport_surface.h
diff --git a/content/common/gpu/image_transport_surface.h b/content/common/gpu/image_transport_surface.h
index 19f6881b05fd0aa41b033f84a60da0f0fe97cbde..9d9fa63f2304ac14506a6e4cd85732e94d44d3a1 100644
--- a/content/common/gpu/image_transport_surface.h
+++ b/content/common/gpu/image_transport_surface.h
@@ -57,8 +57,10 @@ class ImageTransportSurface {
public:
ImageTransportSurface();
+#if defined(OS_MACOSX)
virtual void OnBufferPresented(
const AcceleratedSurfaceMsg_BufferPresented_Params& params) = 0;
+#endif
virtual void OnResize(gfx::Size size, float scale_factor) = 0;
virtual void SetLatencyInfo(
const std::vector<ui::LatencyInfo>& latency_info) = 0;
@@ -142,8 +144,10 @@ class ImageTransportHelper
gpu::gles2::GLES2Decoder* Decoder();
// IPC::Message handlers.
+#if defined(OS_MACOSX)
void OnBufferPresented(
const AcceleratedSurfaceMsg_BufferPresented_Params& params);
+#endif
void OnWakeUpGpu();
// Backbuffer resize callback.
@@ -180,8 +184,10 @@ class PassThroughImageTransportSurface
virtual bool OnMakeCurrent(gfx::GLContext* context) override;
// ImageTransportSurface implementation.
+#if defined(OS_MACOSX)
virtual void OnBufferPresented(
const AcceleratedSurfaceMsg_BufferPresented_Params& params) override;
+#endif
virtual void OnResize(gfx::Size size, float scale_factor) override;
virtual gfx::Size GetSize() override;
virtual void SetLatencyInfo(
« no previous file with comments | « content/common/gpu/gpu_messages.h ('k') | content/common/gpu/image_transport_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698