LCOV - code coverage report
Current view: top level - gfx/skia/skia/src/pathops - SkOpTAllocator.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 6 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 7 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * Copyright 2014 Google Inc.
       3             :  *
       4             :  * Use of this source code is governed by a BSD-style license that can be
       5             :  * found in the LICENSE file.
       6             :  */
       7             : #ifndef SkOpTAllocator_DEFINED
       8             : #define SkOpTAllocator_DEFINED
       9             : 
      10             : #include "SkArenaAlloc.h"
      11             : 
      12             : // T is SkOpAngle2, SkOpSpan2, or SkOpSegment2
      13             : template<typename T>
      14             : class SkOpTAllocator {
      15             : public:
      16           0 :     static T* Allocate(SkArenaAlloc* allocator) {
      17           0 :         return allocator->make<T>();
      18             :     }
      19             : 
      20           0 :     static T* AllocateArray(SkArenaAlloc* allocator, int count) {
      21           0 :         return allocator->makeArrayDefault<T>(count);
      22             :     }
      23             : 
      24           0 :     static T* New(SkArenaAlloc* allocator) {
      25           0 :         return allocator->make<T>();
      26             :     }
      27             : };
      28             : 
      29             : #endif

Generated by: LCOV version 1.13