summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Fix undefined memory access in getCoveringRanges() (#9227)Anand Thakker2017-06-091-3/+4
| | | | | | | | | | | | * Add simple unit tests for SymbolSizeBinder * Fix bug in symbol size uniform value calculation For camera functions we were setting the zoom levels in "covering ranges" to `[(zoom stop <= tile zoom), (zoom stop >= 1 + tile zoom)]`, but then evaluating the function at `[tile_zoom, tile_zoom + 1]`. * Check for it != end() before accessing it->first
* fix #8300 flyTo for close points (#9199)Ansis Brammanis2017-06-061-10/+7
| | | | | | | | | | | | | | The isClose threshold is switched from 0.000001 pixels to 1 pixel. As a backup, it checks whether r0 and r1 are finite. It might be possible to have just the threshold check or just the finiteness check, but I don't see the harm in having both. std::abs(w0 - w1) < 0.000001 is removed because it doesn't look like it's needed. All calculations should run fine even if w0 === w1. Finally, the point interpolation is tweaked so that at the end of the flying (when k === 1) it ends up at the exact end point. I didn't see any bugs related to this, but it seems like a good thing to have explicitly.
* [core] Named members for diff before/afterJohn Firebaugh2017-06-053-5/+12
|
* [core] Collection-level immutabilityJohn Firebaugh2017-06-059-136/+235
| | | | Introduce a second level of immutability, over each of the collections held by a style: sources, images, and layers. Tracking immutability at this level allows us to short-circuit significant portions of the RenderStyle update logic via a simple equality check, greatly improving performance.
* [core] Don't share TransformState referenceJohn Firebaugh2017-06-052-5/+5
|
* [core] Fix several bugs in AnnotationManagerJohn Firebaugh2017-06-051-6/+12
|
* [core] Split RenderStyle from StyleJohn Firebaugh2017-06-0528-593/+683
|
* [core] Simplify LayerObserver APIJohn Firebaugh2017-06-0512-260/+116
|
* [core] Refactor RenderSource updatesJohn Firebaugh2017-06-0544-392/+364
| | | | | | | * Eliminate updateBatch in favor of diffing layers and detecting changes to properties upon which layout depends. * Replace RenderSource::{update,remove,invalidate,reload}Tiles with a single update method * Replace TilePyramid::{update,remove,invalidate,reload}Tiles with a single update method * Remove Style& dependency TODO from GeometryTile and TileParameters
* [core] Thread Style parameter through queryRenderedFeaturesJohn Firebaugh2017-06-0518-12/+46
|
* [core] use the last field in a property value, rather than the first fieldKonstantin Käfer2017-06-031-10/+17
|
* [core] interpret missing field in vector tile values as null instead of falseKonstantin Käfer2017-06-031-1/+1
|
* [core] Add templated RTTI for RenderSource classesAsheem Mamoowala2017-06-017-4/+44
|
* [core] Reuse RasterBucket for ImageSourceAsheem Mamoowala2017-06-015-7/+13
|
* [core] Use fixed-size std::array for ImageSource coordinatesAsheem Mamoowala2017-06-018-48/+31
|
* [core] Render Image SourceAsheem Mamoowala2017-06-0113-15/+365
|
* [core] Offline support for Image SourcesAsheem Mamoowala2017-06-012-1/+8
|
* [core] Add toDouble Conversion method for correctly parsing Lat Lng coordinatesAsheem Mamoowala2017-06-011-0/+7
|
* [core] Add ImageSource support to style parsersAsheem Mamoowala2017-06-015-4/+166
|
* [core] Make TransformState LatLngBounds optionalBruno de Oliveira Abinader2017-06-015-15/+22
|
* [core] Replace inline SpriteAtlas updates with diffingJohn Firebaugh2017-05-306-31/+76
|
* [core] check source usage before removeIvo van Dongen2017-05-301-0/+23
|
* Revert "[core] Factor timePoint initialization"Bruno de Oliveira Abinader2017-05-302-5/+3
| | | | This reverts commit 3790caafa3c98706c5cf0618c8aec592b2780bba.
* [core] allow self closing mailbox/actorIvo van Dongen2017-05-271-2/+3
|
* Refactor RenderLayer and RenderSource to be more friendly for Non-tiled ↵Asheem Mamoowala2017-05-266-35/+66
| | | | sources (#9058)
* [core] Don't need unique_ptr for AnnotationManagerJohn Firebaugh2017-05-261-12/+10
|
* [core] Don't use a separate SpriteAtlas for annotation imagesJohn Firebaugh2017-05-2616-129/+80
| | | | Instead, just add them to the Style as needed. Includes changes from #8905 and takes care to avoid regressing #3817.
* [core] Auto-growable SpriteAtlas using shelf-packJohn Firebaugh2017-05-266-51/+59
|
* [core] Block in Mailbox::close() until neither receive nor push are in progressJohn Firebaugh2017-05-241-9/+18
| | | | | | | | | | | | | | Otherwise, an ActorRef that's in the process of sending a message could attempt to access an invalid Scheduler reference: Thread 1 Thread 2 -------------------------------------------------- Scheduler::Scheduler Actor::Actor weakMailbox.lock() Actor::~Actor Scheduler::~Scheduler mailbox->push() scheduler.schedule() 💣
* [core] cleanup debug loggingIvo van Dongen2017-05-241-2/+0
|
* [core] Simplify and fix sprite atlas coordinate calculationsJohn Firebaugh2017-05-2319-89/+129
| | | | | | | | * Always return image metrics exclusive of padding * Work with integer coordinates whenever possible * Eliminate redundant SpriteAtlasElement members * Fix asymmetric re-padding in getIconQuad when pixelRatio != 1 * Add explanatory comments
* [core] Move pattern coordinate division by texture size into shaderJohn Firebaugh2017-05-2320-18/+36
| | | | This makes pattern usage more like icons, and will be necessary for data-driven *-pattern properties.
* [core] Remove unnecessary optionals in PositionedIconJohn Firebaugh2017-05-233-11/+6
| | | | Lack of icon is already checked at the call site of shapeIcon; no need to check hasArea() here.
* [core] Disable letter-spacing for Arabic labels (issue #9057)Chris Loer2017-05-223-6/+19
|
* [core] leave Image objects in a valid state after premultiply/unpremultiplyKonstantin Käfer2017-05-191-0/+2
|
* [core] Don't unnecessarily request glyphs for verticalized punctuation.Chris Loer2017-05-181-2/+7
| | | | Issue #8982.
* [core] add error for non-virtual destructor deletes + add virtual dtorsKonstantin Käfer2017-05-183-3/+7
|
* [core] Make destructor virtual to avoid object splicing during destructionKonstantin Käfer2017-05-181-0/+1
|
* [core] Throttle tiles to redo symbol placement at most once every 300ms.Chris Loer2017-05-174-2/+72
| | | | Fixes issue #8435 and prepares for pitch-scaling changes in issue #8967.
* [core] Remove redundant SpriteAtlasElement membersJohn Firebaugh2017-05-173-10/+6
|
* [core] Remove ambiguous get{Width,Height} accessors from style::ImageJohn Firebaugh2017-05-173-16/+5
|
* [core] Remove obsolete modular arithmetic on atlas coordinatesJohn Firebaugh2017-05-174-23/+10
| | | | We switched to 16-bit coordinates in attributes in b0cb8715ed74678b4d0f05829fa71a590e41b2f6, so there's no longer any reason to require that they are divisible by four.
* [core] Remove WorkQueueJohn Firebaugh2017-05-173-79/+0
| | | | No longer used as of 5cdf838a387cae446dba500ac49a1c5524bf7949.
* [core, node, darwin, android, qt] Make image ID part of ImageJohn Firebaugh2017-05-1617-87/+69
| | | | More like Source and Layer.
* [core, node, darwin, qt] Remove support for paint classesJohn Firebaugh2017-05-1518-775/+536
|
* [core] cascade ⇢ transition / cascading ⇢ transitionableJohn Firebaugh2017-05-1542-84/+85
|
* [core] Unify {Paint,Layout,Light}PropertiesJohn Firebaugh2017-05-1559-544/+455
|
* [core] *LayerImpl::cascading ⇢ paintJohn Firebaugh2017-05-1522-258/+258
|
* [core] Merge light_properties.hpp into light_impl.hppJohn Firebaugh2017-05-155-55/+43
|
* [core] Immutable<Impl> for ImageJohn Firebaugh2017-05-155-22/+24
|