LCOV - code coverage report
Current view: top level - gfx/skia/skia/src/core - SkSurfacePriv.h (source / functions) Hit Total Coverage
Test: output.info Lines: 3 6 50.0 %
Date: 2017-07-14 16:53:18 Functions: 1 2 50.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             : 
       8             : #ifndef SkSurfacePriv_DEFINED
       9             : #define SkSurfacePriv_DEFINED
      10             : 
      11             : #include "SkSurfaceProps.h"
      12             : 
      13          66 : static inline SkSurfaceProps SkSurfacePropsCopyOrDefault(const SkSurfaceProps* props) {
      14          66 :     if (props) {
      15           0 :         return *props;
      16             :     } else {
      17          66 :         return SkSurfaceProps(SkSurfaceProps::kLegacyFontHost_InitType);
      18             :     }
      19             : }
      20             : 
      21           0 : static inline SkPixelGeometry SkSurfacePropsDefaultPixelGeometry() {
      22           0 :     return SkSurfaceProps(SkSurfaceProps::kLegacyFontHost_InitType).pixelGeometry();
      23             : }
      24             : 
      25             : #endif

Generated by: LCOV version 1.13