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

Unified Diff: core/cross/image_utils.h

Issue 164130: This CL adds client.toDataURL which gets the contents... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: '' Created 11 years, 4 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 | « core/cross/gl/renderer_gl.cc ('k') | core/cross/image_utils_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/cross/image_utils.h
===================================================================
--- core/cross/image_utils.h (revision 22687)
+++ core/cross/image_utils.h (working copy)
@@ -59,8 +59,7 @@
unsigned int GetNumComponentsForFormat(Texture::Format format);
inline bool CheckImageDimensions(unsigned int width, unsigned int height) {
- return width > 0 && height > 0 &&
- width <= kMaxImageDimension && height <= kMaxImageDimension;
+ return width <= kMaxImageDimension && height <= kMaxImageDimension;
}
// Gets the number of mip-maps required for a full chain starting at
« no previous file with comments | « core/cross/gl/renderer_gl.cc ('k') | core/cross/image_utils_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698