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

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

Issue 15821012: [Aura] Fix software compositing blits to WS_EX_LAYERED windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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
« no previous file with comments | « no previous file | content/browser/renderer_host/software_output_device_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
index 057e48ffcb63e0e143aaab213039ef1487a32124..e52808609d5d6027e402cd0bf202668da9121315 100644
--- a/content/browser/renderer_host/software_output_device_win.h
+++ b/content/browser/renderer_host/software_output_device_win.h
@@ -5,10 +5,15 @@
#ifndef CONTENT_BROWSER_RENDERER_HOST_SOFTWARE_OUTPUT_DEVICE_WIN_H_
#define CONTENT_BROWSER_RENDERER_HOST_SOFTWARE_OUTPUT_DEVICE_WIN_H_
+#include "base/memory/scoped_ptr.h"
#include "cc/output/software_output_device.h"
#include <windows.h>
+namespace gfx {
+class Canvas;
+}
+
namespace ui {
class Compositor;
}
@@ -18,17 +23,17 @@ namespace content {
class SoftwareOutputDeviceWin : public cc::SoftwareOutputDevice {
public:
explicit SoftwareOutputDeviceWin(ui::Compositor* compositor);
-
virtual ~SoftwareOutputDeviceWin();
virtual void Resize(gfx::Size viewport_size) OVERRIDE;
-
+ virtual SkCanvas* BeginPaint(gfx::Rect damage_rect) OVERRIDE;
virtual void EndPaint(cc::SoftwareFrameData* frame_data) OVERRIDE;
private:
- ui::Compositor* compositor_;
HWND hwnd_;
BITMAPINFO bitmap_info_;
+ scoped_ptr<gfx::Canvas> contents_;
+ bool is_hwnd_composited_;
};
} // namespace content
« no previous file with comments | « no previous file | content/browser/renderer_host/software_output_device_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698