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

Unified Diff: src/gpu/GrRenderTarget.cpp

Issue 216503004: SK_SUPPORT_LEGACY_GRTYPES to hide duplicate types from SkTypes.h (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 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: src/gpu/GrRenderTarget.cpp
diff --git a/src/gpu/GrRenderTarget.cpp b/src/gpu/GrRenderTarget.cpp
index f18df2cfa6d71b9b2c665438a9dbf243e65c42a0..4dad6cff37616917b4fee8698cdb59063e0ad660 100644
--- a/src/gpu/GrRenderTarget.cpp
+++ b/src/gpu/GrRenderTarget.cpp
@@ -64,7 +64,7 @@ size_t GrRenderTarget::sizeInBytes() const {
uint64_t size = fDesc.fWidth;
size *= fDesc.fHeight;
size *= colorBits;
- size *= GrMax(1, fDesc.fSampleCnt);
+ size *= SkTMax(1, fDesc.fSampleCnt);
return (size_t)(size / 8);
}
« include/gpu/GrPoint.h ('K') | « src/gpu/GrPathUtils.cpp ('k') | src/gpu/SkGpuDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698