LCOV - code coverage report
Current view: top level - gfx/sfntly/cpp/src/sfntly/table - table_based_table_builder.cc (source / functions) Hit Total Coverage
Test: output.info Lines: 0 30 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 15 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * Copyright 2011 Google Inc. All Rights Reserved.
       3             :  *
       4             :  * Licensed under the Apache License, Version 2.0 (the "License");
       5             :  * you may not use this file except in compliance with the License.
       6             :  * You may obtain a copy of the License at
       7             :  *
       8             :  *      http://www.apache.org/licenses/LICENSE-2.0
       9             :  *
      10             :  * Unless required by applicable law or agreed to in writing, software
      11             :  * distributed under the License is distributed on an "AS IS" BASIS,
      12             :  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      13             :  * See the License for the specific language governing permissions and
      14             :  * limitations under the License.
      15             :  */
      16             : 
      17             : #include "sfntly/table/table_based_table_builder.h"
      18             : 
      19             : namespace sfntly {
      20             : 
      21             : /******************************************************************************
      22             :  * TableBasedTableBuilder class
      23             :  ******************************************************************************/
      24           0 : TableBasedTableBuilder::~TableBasedTableBuilder() {}
      25             : 
      26           0 : int32_t TableBasedTableBuilder::SubSerialize(WritableFontData* data) {
      27             :   UNREFERENCED_PARAMETER(data);
      28           0 :   return 0;
      29             : }
      30             : 
      31           0 : bool TableBasedTableBuilder::SubReadyToSerialize() {
      32           0 :   return false;
      33             : }
      34             : 
      35           0 : int32_t TableBasedTableBuilder::SubDataSizeToSerialize() {
      36           0 :   return 0;
      37             : }
      38             : 
      39           0 : void TableBasedTableBuilder::SubDataSet() {
      40           0 :   table_ = NULL;
      41           0 : }
      42             : 
      43           0 : CALLER_ATTACH FontDataTable* TableBasedTableBuilder::Build() {
      44           0 :   FontDataTablePtr table = static_cast<FontDataTable*>(GetTable());
      45           0 :   return table.Detach();
      46             : }
      47             : 
      48           0 : TableBasedTableBuilder::TableBasedTableBuilder(Header* header,
      49           0 :                                                WritableFontData* data)
      50           0 :     : Table::Builder(header, data) {
      51           0 : }
      52             : 
      53           0 : TableBasedTableBuilder::TableBasedTableBuilder(Header* header,
      54           0 :                                                ReadableFontData* data)
      55           0 :     : Table::Builder(header, data) {
      56           0 : }
      57             : 
      58           0 : TableBasedTableBuilder::TableBasedTableBuilder(Header* header)
      59           0 :     : Table::Builder(header) {
      60           0 : }
      61             : 
      62           0 : Table* TableBasedTableBuilder::GetTable() {
      63           0 :   if (!table_) {
      64           0 :     ReadableFontData* data = InternalReadData();
      65           0 :     if (data)
      66           0 :       table_.Attach(down_cast<Table*>(SubBuildTable(data)));
      67             :   }
      68           0 :   return table_;
      69             : }
      70             : 
      71             : }  // namespace sfntly

Generated by: LCOV version 1.13