| Index: blimp/client/core/compositor/blimp_compositor.cc
|
| diff --git a/blimp/client/core/compositor/blimp_compositor.cc b/blimp/client/core/compositor/blimp_compositor.cc
|
| index edafad482814c074fa7fddfe9e1c665d7a0e44df..117dac67f4d17cae8ef5ad78a02871965c9beab7 100644
|
| --- a/blimp/client/core/compositor/blimp_compositor.cc
|
| +++ b/blimp/client/core/compositor/blimp_compositor.cc
|
| @@ -38,28 +38,6 @@
|
| namespace blimp {
|
| namespace client {
|
|
|
| -namespace {
|
| -
|
| -void SatisfyCallback(cc::SurfaceManager* manager,
|
| - const cc::SurfaceSequence& sequence) {
|
| - std::vector<uint32_t> sequences;
|
| - sequences.push_back(sequence.sequence);
|
| - manager->DidSatisfySequences(sequence.frame_sink_id, &sequences);
|
| -}
|
| -
|
| -void RequireCallback(cc::SurfaceManager* manager,
|
| - const cc::SurfaceId& id,
|
| - const cc::SurfaceSequence& sequence) {
|
| - cc::Surface* surface = manager->GetSurfaceForId(id);
|
| - if (!surface) {
|
| - LOG(ERROR) << "Attempting to require callback on nonexistent surface";
|
| - return;
|
| - }
|
| - surface->AddDestructionDependency(sequence);
|
| -}
|
| -
|
| -} // namespace
|
| -
|
| class BlimpCompositor::FrameTrackingSwapPromise : public cc::SwapPromise {
|
| public:
|
| FrameTrackingSwapPromise(
|
| @@ -329,12 +307,11 @@ void BlimpCompositor::SubmitCompositorFrame(cc::CompositorFrame frame) {
|
| // manager must outlive compositors using it.
|
| cc::SurfaceManager* surface_manager =
|
| GetEmbedderDeps()->GetSurfaceManager();
|
| - scoped_refptr<cc::SurfaceLayer> content_layer = cc::SurfaceLayer::Create(
|
| - base::Bind(&SatisfyCallback, base::Unretained(surface_manager)),
|
| - base::Bind(&RequireCallback, base::Unretained(surface_manager)));
|
| - content_layer->SetSurfaceId(
|
| - cc::SurfaceId(surface_factory_->frame_sink_id(), local_frame_id_), 1.f,
|
| - surface_size);
|
| + auto content_layer =
|
| + cc::SurfaceLayer::Create(surface_manager->reference_factory());
|
| + cc::SurfaceId surface_id(surface_factory_->frame_sink_id(),
|
| + local_frame_id_);
|
| + content_layer->SetSurfaceInfo(surface_id, 1.f, surface_size);
|
| content_layer->SetBounds(current_surface_size_);
|
| content_layer->SetIsDrawable(true);
|
| content_layer->SetContentsOpaque(true);
|
|
|