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

Unified Diff: content/test/mailbox_output_surface.h

Issue 2102153003: GLFrameData: Remove dead code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix content_browsertests 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
« no previous file with comments | « content/test/layouttest_support.cc ('k') | content/test/mailbox_output_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/mailbox_output_surface.h
diff --git a/content/test/mailbox_output_surface.h b/content/test/mailbox_output_surface.h
deleted file mode 100644
index ac04f8b341cc7de6ec02f474a6ed87a929f35e64..0000000000000000000000000000000000000000
--- a/content/test/mailbox_output_surface.h
+++ /dev/null
@@ -1,84 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CONTENT_TEST_MAILBOX_OUTPUT_SURFACE_H_
-#define CONTENT_TEST_MAILBOX_OUTPUT_SURFACE_H_
-
-#include <stddef.h>
-#include <stdint.h>
-
-#include <queue>
-
-#include "base/memory/ref_counted.h"
-#include "cc/output/output_surface.h"
-#include "cc/resources/resource_format.h"
-#include "cc/resources/transferable_resource.h"
-#include "ui/gfx/geometry/size.h"
-
-namespace cc {
-class CompositorFrameAck;
-class ContextProvider;
-class GLFrameData;
-}
-
-namespace content {
-class FrameSwapMessageQueue;
-
-// Implementation of CompositorOutputSurface that renders to textures which
-// are sent to the browser through the mailbox extension.
-// This class can be created only on the main thread, but then becomes pinned
-// to a fixed thread when bindToClient is called.
-class MailboxOutputSurface : public cc::OutputSurface {
- public:
- MailboxOutputSurface(
- uint32_t output_surface_id,
- scoped_refptr<cc::ContextProvider> context_provider,
- scoped_refptr<cc::ContextProvider> worker_context_provider);
- ~MailboxOutputSurface() override;
-
- // cc::OutputSurface implementation.
- bool BindToClient(cc::OutputSurfaceClient* client) override;
- void DetachFromClient() override;
- void EnsureBackbuffer() override;
- void DiscardBackbuffer() override;
- void Reshape(const gfx::Size& size, float scale_factor, bool alpha) override;
- void BindFramebuffer() override;
- uint32_t GetFramebufferCopyTextureFormat() override;
- void SwapBuffers(cc::CompositorFrame frame) override;
-
- private:
- void ShortcutSwapAck(uint32_t output_surface_id,
- std::unique_ptr<cc::GLFrameData> gl_frame_data);
- void OnSwapAck(uint32_t output_surface_id, const cc::CompositorFrameAck& ack);
-
- size_t GetNumAcksPending();
-
- struct TransferableFrame {
- TransferableFrame();
- TransferableFrame(uint32_t texture_id,
- const gpu::Mailbox& mailbox,
- const gfx::Size size);
-
- uint32_t texture_id;
- gpu::Mailbox mailbox;
- gpu::SyncToken sync_token;
- gfx::Size size;
- };
-
- const uint32_t output_surface_id_;
-
- TransferableFrame current_backing_;
- std::deque<TransferableFrame> pending_textures_;
- std::queue<TransferableFrame> returned_textures_;
-
- uint32_t fbo_;
- bool is_backbuffer_discarded_;
-
- std::unique_ptr<cc::CompositorFrameAck> previous_frame_ack_;
- base::WeakPtrFactory<MailboxOutputSurface> weak_ptrs_;
-};
-
-} // namespace content
-
-#endif // CONTENT_TEST_MAILBOX_OUTPUT_SURFACE_H_
« no previous file with comments | « content/test/layouttest_support.cc ('k') | content/test/mailbox_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698