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

Unified Diff: content/browser/compositor/vulkan_browser_compositor_output_surface.h

Issue 2480203002: ui: Cleanup class/struct forward declarations (Closed)
Patch Set: Sync CL to position 430550 Created 4 years, 1 month 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: content/browser/compositor/vulkan_browser_compositor_output_surface.h
diff --git a/content/browser/compositor/vulkan_browser_compositor_output_surface.h b/content/browser/compositor/vulkan_browser_compositor_output_surface.h
index 9ffd1159c64f19b448e2ed228fd3f4304c393257..c2abaa1df081cf2c60a6cd9d7b5b79f3850b234d 100644
--- a/content/browser/compositor/vulkan_browser_compositor_output_surface.h
+++ b/content/browser/compositor/vulkan_browser_compositor_output_surface.h
@@ -8,6 +8,8 @@
#include <memory>
#include "base/macros.h"
+#include "base/memory/weak_ptr.h"
+#include "cc/output/output_surface_frame.h"
#include "content/browser/compositor/browser_compositor_output_surface.h"
#include "ui/gfx/native_widget_types.h"
@@ -30,18 +32,27 @@ class VulkanBrowserCompositorOutputSurface
bool Initialize(gfx::AcceleratedWidget widget);
void Destroy();
- // BrowserCompositorOutputSurface implementation.
- void OnGpuSwapBuffersCompleted(
- const std::vector<ui::LatencyInfo>& latency_info,
- gfx::SwapResult result,
- const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac) override;
-
- protected:
// cc::OutputSurface implementation.
- void SwapBuffers(cc::CompositorFrame* frame) override;
+ void BindToClient(cc::OutputSurfaceClient* client) override;
+ void EnsureBackbuffer() override;
+ void DiscardBackbuffer() override;
+ void BindFramebuffer() override;
+ bool IsDisplayedAsOverlayPlane() const override;
+ unsigned GetOverlayTextureId() const override;
+ bool SurfaceIsSuspendForRecycle() const override;
+ void Reshape(const gfx::Size& size,
+ float device_scale_factor,
+ const gfx::ColorSpace& color_space,
+ bool has_alpha) override;
+ uint32_t GetFramebufferCopyTextureFormat() override;
+ void SwapBuffers(cc::OutputSurfaceFrame frame) override;
private:
+ void SwapBuffersAck();
+
std::unique_ptr<gpu::VulkanSurface> surface_;
+ cc::OutputSurfaceClient* client_ = nullptr;
+ base::WeakPtrFactory<VulkanBrowserCompositorOutputSurface> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(VulkanBrowserCompositorOutputSurface);
};

Powered by Google App Engine
This is Rietveld 408576698