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

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

Issue 2472433002: Fixed compile- and link-time errors with the "enable_vulkan" GN-argument (Closed)
Patch Set: 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..9d3c430d611e5887681eb7c2b243c5b5ff1c8404 100644
--- a/content/browser/compositor/vulkan_browser_compositor_output_surface.h
+++ b/content/browser/compositor/vulkan_browser_compositor_output_surface.h
@@ -8,6 +8,7 @@
#include <memory>
#include "base/macros.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,15 +31,19 @@ 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 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:
std::unique_ptr<gpu::VulkanSurface> surface_;

Powered by Google App Engine
This is Rietveld 408576698