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

Unified Diff: core/cross/image_utils.h

Issue 2377002: In some circumstances the O3D plugin is briefly resized to zero height,... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/o3d/
Patch Set: Created 10 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 | no next file » | 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 48457)
+++ core/cross/image_utils.h (working copy)
@@ -79,7 +79,7 @@
// Gets the smallest power-of-two value that is at least as high as
// dimension. This is the POT dimension used in ScaleUpToPOT.
inline unsigned int ComputePOTSize(unsigned int dimension) {
- return 1 << base::bits::Log2Ceiling(dimension);
+ return (dimension == 0) ? 0 : 1 << base::bits::Log2Ceiling(dimension);
}
// Computes one dimension of a mip.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698