Fix for int to bool in GrInOrderDrawBuffer
authorcommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 25 Mar 2014 15:49:59 +0000 (15:49 +0000)
committercommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 25 Mar 2014 15:49:59 +0000 (15:49 +0000)
NOTREECHECK=True
NOTRY=True
R=bsalomon@google.com
TBR=bsalomon@google.com
BUG=skia:

Author: egdaniel@google.com

Review URL: https://codereview.chromium.org/207553006

git-svn-id: http://skia.googlecode.com/svn/trunk@13938 2bbb7eff-a529-9590-31e7-b0007b416f81

src/gpu/GrInOrderDrawBuffer.cpp

index 1421af7..178df75 100644 (file)
@@ -132,7 +132,7 @@ static uint8_t strip_trace_bit(uint8_t cmd) {
 }
 
 static bool cmd_has_trace_marker(uint8_t cmd) {
-    return cmd & kTraceCmdBit;
+    return SkToBool(cmd & kTraceCmdBit);
 }
 
 void GrInOrderDrawBuffer::onDrawRect(const SkRect& rect,