| Index: services/ui/public/cpp/software_output_device.h
|
| diff --git a/content/browser/compositor/software_output_device_mus.h b/services/ui/public/cpp/software_output_device.h
|
| similarity index 45%
|
| rename from content/browser/compositor/software_output_device_mus.h
|
| rename to services/ui/public/cpp/software_output_device.h
|
| index d4a2e4500b46752c895207a7459c6ea3f2b1c99b..cabf116645631af06dffa3f81baf6a5c498be638 100644
|
| --- a/content/browser/compositor/software_output_device_mus.h
|
| +++ b/services/ui/public/cpp/software_output_device.h
|
| @@ -2,35 +2,36 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef CONTENT_BROWSER_COMPOSITOR_SOFTWARE_OUTPUT_DEVICE_MUS_H_
|
| -#define CONTENT_BROWSER_COMPOSITOR_SOFTWARE_OUTPUT_DEVICE_MUS_H_
|
| +#ifndef SERVICES_UI_PUBLIC_CPP_SOFTWARE_OUTPUT_DEVICE_H_
|
| +#define SERVICES_UI_PUBLIC_CPP_SOFTWARE_OUTPUT_DEVICE_H_
|
| +
|
| +#include <memory>
|
|
|
| #include "base/macros.h"
|
| #include "cc/output/software_output_device.h"
|
| -#include "content/common/content_export.h"
|
|
|
| namespace ui {
|
| -class Compositor;
|
| -}
|
|
|
| -namespace content {
|
| +class BitmapUploader;
|
| +class Window;
|
|
|
| // Mus implementation of software compositing: Chrome will do a software
|
| // composite and ship the resultant bitmap to an instance of the mus
|
| -// window server. Remove this upon completion of http://crbug.com/548451
|
| -class SoftwareOutputDeviceMus : public cc::SoftwareOutputDevice {
|
| +// window server.
|
| +class SoftwareOutputDevice : public cc::SoftwareOutputDevice {
|
| public:
|
| - explicit SoftwareOutputDeviceMus(ui::Compositor* compositor);
|
| + explicit SoftwareOutputDevice(Window* window);
|
| + ~SoftwareOutputDevice() override;
|
|
|
| private:
|
| // cc::SoftwareOutputDevice
|
| void EndPaint() override;
|
|
|
| - ui::Compositor* compositor_;
|
| + std::unique_ptr<BitmapUploader> uploader_;
|
|
|
| - DISALLOW_COPY_AND_ASSIGN(SoftwareOutputDeviceMus);
|
| + DISALLOW_COPY_AND_ASSIGN(SoftwareOutputDevice);
|
| };
|
|
|
| -} // namespace content
|
| +} // namespace ui
|
|
|
| -#endif // CONTENT_BROWSER_COMPOSITOR_SOFTWARE_OUTPUT_DEVICE_MUS_H_
|
| +#endif // SERVICES_UI_PUBLIC_CPP_SOFTWARE_OUTPUT_DEVICE_H_
|
|
|