#include "third_party/blink/renderer/platform/graphics/surface_layer_bridge.h"
#include <utility>
#include "base/feature_list.h"
#include "cc/layers/layer.h"
#include "cc/layers/solid_color_layer.h"
#include "cc/layers/surface_layer.h"
#include "components/viz/common/surfaces/surface_id.h"
#include "components/viz/common/surfaces/surface_info.h"
#include "media/base/media_switches.h"
#include "third_party/blink/public/common/thread_safe_browser_interface_broker_proxy.h"
#include "third_party/blink/public/platform/platform.h"
#include "third_party/blink/renderer/platform/wtf/functional.h"
#include "ui/gfx/geometry/size.h"
namespace blink {
SurfaceLayerBridge::SurfaceLayerBridge(
viz::FrameSinkId parent_frame_sink_id,
ContainsVideo contains_video,
WebSurfaceLayerBridgeObserver* observer,
cc::UpdateSubmissionStateCB update_submission_state_callback)
: … { … }
SurfaceLayerBridge::~SurfaceLayerBridge() = default;
void SurfaceLayerBridge::CreateSolidColorLayer() { … }
void SurfaceLayerBridge::SetLocalSurfaceId(
const viz::LocalSurfaceId& local_surface_id) { … }
void SurfaceLayerBridge::EmbedSurface(const viz::SurfaceId& surface_id) { … }
void SurfaceLayerBridge::BindSurfaceEmbedder(
mojo::PendingReceiver<mojom::blink::SurfaceEmbedder> receiver) { … }
cc::Layer* SurfaceLayerBridge::GetCcLayer() const { … }
const viz::FrameSinkId& SurfaceLayerBridge::GetFrameSinkId() const { … }
void SurfaceLayerBridge::ClearObserver() { … }
void SurfaceLayerBridge::SetContentsOpaque(bool opaque) { … }
void SurfaceLayerBridge::CreateSurfaceLayer() { … }
void SurfaceLayerBridge::RegisterFrameSinkHierarchy() { … }
void SurfaceLayerBridge::UnregisterFrameSinkHierarchy() { … }
}