diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2016-06-22 23:22:41 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-22 23:22:41 -0700 |
commit | 415c18294693166472785459f9d5bc8be31b7033 (patch) | |
tree | cafcb78ba41920e1e2462d79284783d951d1e4f2 /platform/macos/src | |
parent | 4c87da6b8fc81e45e72d638024e49f230090945c (diff) | |
download | qtlocation-mapboxgl-415c18294693166472785459f9d5bc8be31b7033.tar.gz |
[ios, macos] Renamed overdraw to overdraw visualization (#5416)
A verb doesn’t make sense in this enum value. Instead, use a descriptive word for this effect and describe it in detail in the documentation comment.
Diffstat (limited to 'platform/macos/src')
-rw-r--r-- | platform/macos/src/MGLMapView.h | 6 | ||||
-rw-r--r-- | platform/macos/src/MGLMapView.mm | 4 |
2 files changed, 6 insertions, 4 deletions
diff --git a/platform/macos/src/MGLMapView.h b/platform/macos/src/MGLMapView.h index 51df9e728a..8f1fa40137 100644 --- a/platform/macos/src/MGLMapView.h +++ b/platform/macos/src/MGLMapView.h @@ -21,8 +21,10 @@ typedef NS_OPTIONS(NSUInteger, MGLMapDebugMaskOptions) { diagnose collision and label placement issues. */ MGLMapDebugCollisionBoxesMask = 1 << 4, - /** Overdraw inspector. */ - MGLMapDebugOverdrawsMask = 1 << 5, + /** Each drawing operation is replaced by a translucent fill. Overlapping + drawing operations appear more prominent to help diagnose overdrawing. + */ + MGLMapDebugOverdrawVisualizationMask = 1 << 5, /** The stencil buffer is shown instead of the color buffer. */ MGLMapDebugStencilBufferMask = 1 << 6, diff --git a/platform/macos/src/MGLMapView.mm b/platform/macos/src/MGLMapView.mm index a24d47db9a..02c892b356 100644 --- a/platform/macos/src/MGLMapView.mm +++ b/platform/macos/src/MGLMapView.mm @@ -2399,7 +2399,7 @@ public: mask |= MGLMapDebugCollisionBoxesMask; } if (options & mbgl::MapDebugOptions::Overdraw) { - mask |= MGLMapDebugOverdrawsMask; + mask |= MGLMapDebugOverdrawVisualizationMask; } if (options & mbgl::MapDebugOptions::StencilClip) { mask |= MGLMapDebugStencilBufferMask; @@ -2421,7 +2421,7 @@ public: if (debugMask & MGLMapDebugCollisionBoxesMask) { options |= mbgl::MapDebugOptions::Collision; } - if (debugMask & MGLMapDebugOverdrawsMask) { + if (debugMask & MGLMapDebugOverdrawVisualizationMask) { options |= mbgl::MapDebugOptions::Overdraw; } if (debugMask & MGLMapDebugStencilBufferMask) { |