Coverage Report

Created: 2018-09-25 14:53

/src/mozilla-central/gfx/layers/client/ClientContainerLayer.cpp
Line
Count
Source (jump to first uncovered line)
1
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
3
/* This Source Code Form is subject to the terms of the Mozilla Public
4
 * License, v. 2.0. If a copy of the MPL was not distributed with this
5
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6
7
#include "ClientContainerLayer.h"
8
#include "ClientLayerManager.h"         // for ClientLayerManager, etc
9
#include "mozilla/mozalloc.h"           // for operator new
10
#include "nsCOMPtr.h"                   // for already_AddRefed
11
#include "nsISupportsImpl.h"            // for Layer::AddRef, etc
12
13
namespace mozilla {
14
namespace layers {
15
16
already_AddRefed<ContainerLayer>
17
ClientLayerManager::CreateContainerLayer()
18
0
{
19
0
  NS_ASSERTION(InConstruction(), "Only allowed in construction phase");
20
0
  RefPtr<ClientContainerLayer> layer =
21
0
    new ClientContainerLayer(this);
22
0
  CREATE_SHADOW(Container);
23
0
  return layer.forget();
24
0
}
25
26
already_AddRefed<RefLayer>
27
ClientLayerManager::CreateRefLayer()
28
0
{
29
0
  NS_ASSERTION(InConstruction(), "Only allowed in construction phase");
30
0
  RefPtr<ClientRefLayer> layer =
31
0
    new ClientRefLayer(this);
32
0
  CREATE_SHADOW(Ref);
33
0
  return layer.forget();
34
0
}
35
36
} // namespace layers
37
} // namespace mozilla