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 : #ifndef GFX_WEBRENDERCOLORLAYER_H
7 : #define GFX_WEBRENDERCOLORLAYER_H
8 :
9 : #include "Layers.h"
10 : #include "mozilla/layers/WebRenderLayer.h"
11 : #include "mozilla/layers/WebRenderLayerManager.h"
12 :
13 : namespace mozilla {
14 : namespace layers {
15 :
16 : class WebRenderColorLayer : public WebRenderLayer,
17 : public ColorLayer {
18 : public:
19 0 : explicit WebRenderColorLayer(WebRenderLayerManager* aLayerManager)
20 0 : : ColorLayer(aLayerManager, static_cast<WebRenderLayer*>(this))
21 : {
22 0 : MOZ_COUNT_CTOR(WebRenderColorLayer);
23 0 : }
24 :
25 : protected:
26 0 : virtual ~WebRenderColorLayer()
27 0 : {
28 0 : MOZ_COUNT_DTOR(WebRenderColorLayer);
29 0 : }
30 :
31 : public:
32 0 : Layer* GetLayer() override { return this; }
33 : void RenderLayer(wr::DisplayListBuilder& aBuilder,
34 : const StackingContextHelper& aSc) override;
35 : };
36 :
37 : } // namespace layers
38 : } // namespace mozilla
39 :
40 : #endif // GFX_WEBRENDERCOLORLAYER_H
|