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

Unified Diff: image_container.h

Issue 6793005: Add the xrender backend to the window manager. (Closed) Base URL: ssh://gitrw.chromium.org:9222/window_manager.git@master
Patch Set: Address first round of comments. Created 9 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: image_container.h
diff --git a/image_container.h b/image_container.h
index c56f86b2db50d3be6367bedf37b66121a435ad07..f94b7e9f5c5374e402cfa34603d7eeec40a00f6a 100644
--- a/image_container.h
+++ b/image_container.h
@@ -10,6 +10,7 @@
#include "base/basictypes.h"
#include "base/logging.h"
#include "base/scoped_ptr.h"
+#include "window_manager/geometry.h"
#include "window_manager/image_enums.h"
namespace window_manager {
@@ -40,6 +41,7 @@ class ImageContainer {
uint8_t* data() const { return data_; }
size_t width() const { return width_; }
size_t height() const { return height_; }
+ Size GetSize() const { return Size(width_,height_); }
Daniel Erat 2011/04/04 21:16:35 nit: just name this size() (some of the other code
marcheu 2011/04/05 00:23:40 Done.
// Return stride in bytes of a row of pixels in the image data.
size_t stride() const {

Powered by Google App Engine
This is Rietveld 408576698