LCOV - code coverage report
Current view: top level - gfx/layers - Effects.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 32 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 6 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
       2             : /* This Source Code Form is subject to the terms of the Mozilla Public
       3             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       4             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
       5             : 
       6             : #include "Effects.h"
       7             : #include "LayersLogging.h"              // for AppendToString
       8             : #include "nsAString.h"
       9             : #include "nsPrintfCString.h"            // for nsPrintfCString
      10             : #include "nsString.h"                   // for nsAutoCString
      11             : 
      12             : using namespace mozilla::layers;
      13             : 
      14             : void
      15           0 : TexturedEffect::PrintInfo(std::stringstream& aStream, const char* aPrefix)
      16             : {
      17           0 :   aStream << aPrefix;
      18           0 :   aStream << nsPrintfCString("%s (0x%p)", Name(), this).get();
      19           0 :   AppendToString(aStream, mTextureCoords, " [texture-coords=", "]");
      20             : 
      21           0 :   if (mPremultiplied) {
      22           0 :     aStream << " [premultiplied]";
      23             :   } else {
      24           0 :     aStream << " [not-premultiplied]";
      25             :   }
      26             : 
      27           0 :   AppendToString(aStream, mSamplingFilter, " [filter=", "]");
      28           0 : }
      29             : 
      30             : void
      31           0 : EffectMask::PrintInfo(std::stringstream& aStream, const char* aPrefix)
      32             : {
      33           0 :   aStream << aPrefix;
      34           0 :   aStream << nsPrintfCString("EffectMask (0x%p)", this).get();
      35           0 :   AppendToString(aStream, mSize, " [size=", "]");
      36           0 :   AppendToString(aStream, mMaskTransform, " [mask-transform=", "]");
      37           0 : }
      38             : 
      39             : void
      40           0 : EffectRenderTarget::PrintInfo(std::stringstream& aStream, const char* aPrefix)
      41             : {
      42           0 :   TexturedEffect::PrintInfo(aStream, aPrefix);
      43           0 :   aStream << nsPrintfCString(" [render-target=%p]", mRenderTarget.get()).get();
      44           0 : }
      45             : 
      46             : void
      47           0 : EffectSolidColor::PrintInfo(std::stringstream& aStream, const char* aPrefix)
      48             : {
      49           0 :   aStream << aPrefix;
      50           0 :   aStream << nsPrintfCString("EffectSolidColor (0x%p) [color=%x]", this, mColor.ToABGR()).get();
      51           0 : }
      52             : 
      53             : void
      54           0 : EffectBlendMode::PrintInfo(std::stringstream& aStream, const char* aPrefix)
      55             : {
      56           0 :   aStream << aPrefix;
      57           0 :   aStream << nsPrintfCString("EffectBlendMode (0x%p) [blendmode=%i]", this, (int)mBlendMode).get();
      58           0 : }
      59             : 
      60             : void
      61           0 : EffectColorMatrix::PrintInfo(std::stringstream& aStream, const char* aPrefix)
      62             : {
      63           0 :   aStream << aPrefix;
      64           0 :   aStream << nsPrintfCString("EffectColorMatrix (0x%p)", this).get();
      65           0 :   AppendToString(aStream, mColorMatrix, " [matrix=", "]");
      66           0 : }
      67             : 

Generated by: LCOV version 1.13