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

Unified Diff: src/gpu/GrInOrderDrawBuffer.cpp

Issue 207553006: Fix for int to bool in GrInOrderDrawBuffer (Closed) Base URL: https://skia.googlesource.com/skia.git@master
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
« 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: src/gpu/GrInOrderDrawBuffer.cpp
diff --git a/src/gpu/GrInOrderDrawBuffer.cpp b/src/gpu/GrInOrderDrawBuffer.cpp
index 1421af788f37dce601f968f9ff5540aac7b045fc..178df7553a97a6dcfdd2aa62e6d0de829bc223ab 100644
--- a/src/gpu/GrInOrderDrawBuffer.cpp
+++ b/src/gpu/GrInOrderDrawBuffer.cpp
@@ -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,
« 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