| Index: content/browser/renderer_host/software_output_device_linux.h
|
| diff --git a/content/browser/renderer_host/software_output_device_linux.h b/content/browser/renderer_host/software_output_device_linux.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..654936e9b0926f55c619d67ef85b2a717cd1880a
|
| --- /dev/null
|
| +++ b/content/browser/renderer_host/software_output_device_linux.h
|
| @@ -0,0 +1,38 @@
|
| +// Copyright (c) 2013 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CONTENT_BROWSER_RENDERER_HOST_SOFTWARE_OUTPUT_DEVICE_LINUX_H_
|
| +#define CONTENT_BROWSER_RENDERER_HOST_SOFTWARE_OUTPUT_DEVICE_LINUX_H_
|
| +
|
| +#include "cc/software_output_device.h"
|
| +#include "ui/base/x/x11_util.h"
|
| +
|
| +namespace ui {
|
| +class Compositor;
|
| +}
|
| +
|
| +namespace content {
|
| +
|
| +class SoftwareOutputDeviceLinux : public cc::SoftwareOutputDevice {
|
| + public:
|
| + explicit SoftwareOutputDeviceLinux(ui::Compositor* compositor);
|
| +
|
| + virtual ~SoftwareOutputDeviceLinux();
|
| +
|
| + virtual void Resize(const gfx::Size& viewport_size) OVERRIDE;
|
| +
|
| + virtual void EndPaint(cc::SoftwareFrameData* frame_data) OVERRIDE;
|
| +
|
| + private:
|
| + void ClearImage();
|
| +
|
| + ui::Compositor* compositor_;
|
| + Display* display_;
|
| + GC gc_;
|
| + XImage* image_;
|
| +};
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // CONTENT_BROWSER_RENDERER_HOST_SOFTWARE_OUTPUT_DEVICE_LINUX_H_
|
|
|