| Index: services/ui/surfaces/display_compositor.cc
|
| diff --git a/services/ui/surfaces/display_compositor.cc b/services/ui/surfaces/display_compositor.cc
|
| index 5847814353dbaa96ce04fef3c85c3374f584409b..1bc067e798a7e860bbf75d53d8680194eef85798 100644
|
| --- a/services/ui/surfaces/display_compositor.cc
|
| +++ b/services/ui/surfaces/display_compositor.cc
|
| @@ -4,38 +4,14 @@
|
|
|
| #include "services/ui/surfaces/display_compositor.h"
|
|
|
| -#include "services/ui/surfaces/display_compositor_client.h"
|
| -
|
| namespace ui {
|
|
|
| -DisplayCompositor::DisplayCompositor(DisplayCompositorClient* client)
|
| - : client_(client), next_client_id_(1u) {
|
| - manager_.AddObserver(this);
|
| -}
|
| +DisplayCompositor::DisplayCompositor() : next_client_id_(1u) {}
|
| +
|
| +DisplayCompositor::~DisplayCompositor() {}
|
|
|
| uint32_t DisplayCompositor::GenerateNextClientId() {
|
| return next_client_id_++;
|
| }
|
|
|
| -void DisplayCompositor::ReturnSurfaceReference(
|
| - const cc::SurfaceSequence& sequence) {
|
| - std::vector<uint32_t> sequences;
|
| - sequences.push_back(sequence.sequence);
|
| - manager_.DidSatisfySequences(sequence.frame_sink_id, &sequences);
|
| -}
|
| -
|
| -DisplayCompositor::~DisplayCompositor() {
|
| - manager_.RemoveObserver(this);
|
| -}
|
| -
|
| -void DisplayCompositor::OnSurfaceCreated(const cc::SurfaceId& surface_id,
|
| - const gfx::Size& frame_size,
|
| - float device_scale_factor) {
|
| - if (client_)
|
| - client_->OnSurfaceCreated(surface_id, frame_size, device_scale_factor);
|
| -}
|
| -
|
| -void DisplayCompositor::OnSurfaceDamaged(const cc::SurfaceId& surface_id,
|
| - bool* changed) {}
|
| -
|
| } // namespace ui
|
|
|