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

Side by Side Diff: services/ui/public/cpp/software_output_device.h

Issue 2232793002: services/ui: Move cc::SoftwareOutputDevice implementation into the client lib. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_COMPOSITOR_SOFTWARE_OUTPUT_DEVICE_MUS_H_ 5 #ifndef SERVICES_UI_PUBLIC_CPP_SOFTWARE_OUTPUT_DEVICE_H_
6 #define CONTENT_BROWSER_COMPOSITOR_SOFTWARE_OUTPUT_DEVICE_MUS_H_ 6 #define SERVICES_UI_PUBLIC_CPP_SOFTWARE_OUTPUT_DEVICE_H_
7
8 #include <memory>
7 9
8 #include "base/macros.h" 10 #include "base/macros.h"
9 #include "cc/output/software_output_device.h" 11 #include "cc/output/software_output_device.h"
10 #include "content/common/content_export.h"
11 12
12 namespace ui { 13 namespace ui {
13 class Compositor;
14 }
15 14
16 namespace content { 15 class BitmapUploader;
16 class Window;
17 17
18 // Mus implementation of software compositing: Chrome will do a software 18 // Mus implementation of software compositing: Chrome will do a software
19 // composite and ship the resultant bitmap to an instance of the mus 19 // composite and ship the resultant bitmap to an instance of the mus
20 // window server. Remove this upon completion of http://crbug.com/548451 20 // window server.
21 class SoftwareOutputDeviceMus : public cc::SoftwareOutputDevice { 21 class SoftwareOutputDevice : public cc::SoftwareOutputDevice {
22 public: 22 public:
23 explicit SoftwareOutputDeviceMus(ui::Compositor* compositor); 23 explicit SoftwareOutputDevice(Window* window);
24 ~SoftwareOutputDevice() override;
24 25
25 private: 26 private:
26 // cc::SoftwareOutputDevice 27 // cc::SoftwareOutputDevice
27 void EndPaint() override; 28 void EndPaint() override;
28 29
29 ui::Compositor* compositor_; 30 std::unique_ptr<BitmapUploader> uploader_;
30 31
31 DISALLOW_COPY_AND_ASSIGN(SoftwareOutputDeviceMus); 32 DISALLOW_COPY_AND_ASSIGN(SoftwareOutputDevice);
32 }; 33 };
33 34
34 } // namespace content 35 } // namespace ui
35 36
36 #endif // CONTENT_BROWSER_COMPOSITOR_SOFTWARE_OUTPUT_DEVICE_MUS_H_ 37 #endif // SERVICES_UI_PUBLIC_CPP_SOFTWARE_OUTPUT_DEVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698