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

Unified Diff: cc/software_output_device.h

Issue 11967033: [CLOSED] In-browser software compositing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix the lack SkCanvas::clear scissoring. Created 7 years, 11 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 | « cc/output_surface_impl.cc ('k') | cc/software_output_device_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/software_output_device.h
diff --git a/cc/software_output_device.h b/cc/software_output_device.h
index 0581b2b5b8ae3294c362abeb9755214cb4dcd8ad..d3e6fd72ac92728119f3e6157e361dcbb174a913 100644
--- a/cc/software_output_device.h
+++ b/cc/software_output_device.h
@@ -5,25 +5,31 @@
#ifndef CC_SOFTWARE_OUTPUT_DEVICE_H_
#define CC_SOFTWARE_OUTPUT_DEVICE_H_
-#include "third_party/WebKit/Source/Platform/chromium/public/WebImage.h"
+#include "cc/cc_export.h"
+#include "ui/gfx/rect.h"
#include "ui/gfx/size.h"
+#include "ui/gfx/vector2d.h"
+
+class SkBitmap;
+class SkCanvas;
namespace cc {
// This is a "tear-off" class providing software drawing support to
// OutputSurface, such as to a platform-provided window framebuffer.
-class SoftwareOutputDevice {
+class CC_EXPORT SoftwareOutputDevice {
public:
virtual ~SoftwareOutputDevice() {}
- // Lock the framebuffer and return a pointer to a WebImage referring to its
- // pixels. Set forWrite if you intend to change the pixels. Readback
- // is supported whether or not forWrite is set.
- // TODO(danakj): Switch this from WebImage to a Skia type.
- virtual WebKit::WebImage* Lock(bool forWrite) = 0;
- virtual void Unlock() = 0;
+ virtual void Resize(const gfx::Size& size) = 0;
+
+ virtual SkCanvas* BeginPaint() = 0;
+ virtual void EndPaint(const gfx::Rect& damage_rect) = 0;
+
+ virtual void CopyToBitmap(const gfx::Rect& rect, SkBitmap* output) = 0;
- virtual void DidChangeViewportSize(gfx::Size) = 0;
+ virtual void Scroll(const gfx::Vector2d& delta,
+ const gfx::Rect& clip_rect) = 0;
};
} // namespace cc
« no previous file with comments | « cc/output_surface_impl.cc ('k') | cc/software_output_device_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698