Index: content/browser/renderer_host/software_output_device_win.h |
diff --git a/content/browser/renderer_host/software_output_device_win.h b/content/browser/renderer_host/software_output_device_win.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ab8f6bfed009e8d6568531322d455ff5a748d8bf |
--- /dev/null |
+++ b/content/browser/renderer_host/software_output_device_win.h |
@@ -0,0 +1,36 @@ |
+// 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_WIN_H_ |
+#define CONTENT_BROWSER_RENDERER_HOST_SOFTWARE_OUTPUT_DEVICE_WIN_H_ |
+ |
+#include "cc/software_output_device.h" |
+ |
+#include <windows.h> |
+ |
+namespace ui { |
+class Compositor; |
+} |
+ |
+namespace content { |
+ |
+class SoftwareOutputDeviceWin : public cc::SoftwareOutputDevice { |
+ public: |
+ explicit SoftwareOutputDeviceWin(ui::Compositor* compositor); |
+ |
+ virtual ~SoftwareOutputDeviceWin(); |
+ |
+ virtual void Resize(const gfx::Size& viewport_size) OVERRIDE; |
+ |
+ virtual void EndPaint(cc::SoftwareFrameData* frame_data) OVERRIDE; |
+ |
+ private: |
+ ui::Compositor* compositor_; |
+ HDC hdc_; |
+ BITMAPINFO bitmap_info_; |
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_BROWSER_RENDERER_HOST_SOFTWARE_OUTPUT_DEVICE_WIN_H_ |