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

Unified Diff: content/browser/renderer_host/software_output_device_linux.h

Issue 12542006: Implemented browser side software compositing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed reninterpret_casts Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698