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

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 2; 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 "WebRenderColorLayer.h"
       7             : 
       8             : #include "gfxPrefs.h"
       9             : #include "LayersLogging.h"
      10             : #include "mozilla/webrender/webrender_ffi.h"
      11             : #include "mozilla/webrender/WebRenderTypes.h"
      12             : #include "mozilla/layers/ScrollingLayersHelper.h"
      13             : #include "mozilla/layers/StackingContextHelper.h"
      14             : #include "mozilla/layers/WebRenderBridgeChild.h"
      15             : 
      16             : namespace mozilla {
      17             : namespace layers {
      18             : 
      19             : using namespace mozilla::gfx;
      20             : 
      21             : void
      22           0 : WebRenderColorLayer::RenderLayer(wr::DisplayListBuilder& aBuilder,
      23             :                                  const StackingContextHelper& aSc)
      24             : {
      25           0 :   ScrollingLayersHelper scroller(this, aBuilder, aSc);
      26           0 :   StackingContextHelper sc(aSc, aBuilder, this);
      27             : 
      28           0 :   LayerRect rect = Bounds();
      29           0 :   DumpLayerInfo("ColorLayer", rect);
      30             : 
      31           0 :   WrRect r = sc.ToRelativeWrRect(rect);
      32           0 :   aBuilder.PushRect(r, r, wr::ToWrColor(mColor));
      33           0 : }
      34             : 
      35             : } // namespace layers
      36             : } // namespace mozilla

Generated by: LCOV version 1.13