Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(46)

Unified Diff: gpu/include/GrTexture.h

Issue 4854044: Use a single stencil buffer for a given width,height,samplecount (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: comment line wrap Created 13 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/include/GrRenderTarget.h ('k') | gpu/src/GrContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/include/GrTexture.h
===================================================================
--- gpu/include/GrTexture.h (revision 2057)
+++ gpu/include/GrTexture.h (working copy)
@@ -64,7 +64,9 @@
* Approximate number of bytes used by the texture
*/
virtual size_t sizeInBytes() const {
- return fAllocatedWidth * fAllocatedHeight * GrBytesPerPixel(fConfig);
+ return (size_t) fAllocatedWidth *
+ fAllocatedHeight *
+ GrBytesPerPixel(fConfig);
}
/**
« no previous file with comments | « gpu/include/GrRenderTarget.h ('k') | gpu/src/GrContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b