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

Unified Diff: ui/gfx/compositor/compositor.h

Issue 8561016: Adds a bounds parameter to ui::Compositor::ReadPixels (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nicer revision Created 9 years, 1 month 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 | ui/gfx/compositor/compositor_cc.h » ('j') | ui/gfx/compositor/compositor_gl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/compositor/compositor.h
diff --git a/ui/gfx/compositor/compositor.h b/ui/gfx/compositor/compositor.h
index 23fff5b728948039f1a8ec011190cef0061fc702..2b41553d391e6bf43de20aceacfef77249e9f45b 100644
--- a/ui/gfx/compositor/compositor.h
+++ b/ui/gfx/compositor/compositor.h
@@ -136,9 +136,10 @@ class COMPOSITOR_EXPORT Compositor : public base::RefCounted<Compositor> {
// compositing.
void Draw(bool force_clear);
- // Reads the contents of the last rendered frame into the given bitmap.
+ // Reads the region |bounds| of the contents of the last rendered frame
+ // into the given bitmap.
// Returns false if the pixels could not be read.
- virtual bool ReadPixels(SkBitmap* bitmap) = 0;
+ virtual bool ReadPixels(SkBitmap* bitmap, const gfx::Rect& bounds) = 0;
// Notifies the compositor that the size of the widget that it is
// drawing to has changed.
« no previous file with comments | « no previous file | ui/gfx/compositor/compositor_cc.h » ('j') | ui/gfx/compositor/compositor_gl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698