/src/mozilla-central/gfx/layers/client/ClientReadbackLayer.h
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 | | #ifndef GFX_CLIENTREADBACKLAYER_H |
8 | | #define GFX_CLIENTREADBACKLAYER_H |
9 | | |
10 | | #include "ClientLayerManager.h" |
11 | | #include "ReadbackLayer.h" |
12 | | |
13 | | namespace mozilla { |
14 | | namespace layers { |
15 | | |
16 | | class ClientReadbackLayer : |
17 | | public ReadbackLayer, |
18 | | public ClientLayer |
19 | | { |
20 | | public: |
21 | | explicit ClientReadbackLayer(ClientLayerManager *aManager) |
22 | | : ReadbackLayer(aManager, nullptr) |
23 | 0 | { |
24 | 0 | mImplData = static_cast<ClientLayer*>(this); |
25 | 0 | } |
26 | | |
27 | 0 | virtual ShadowableLayer* AsShadowableLayer() override { return this; } |
28 | 0 | virtual Layer* AsLayer() override { return this; } |
29 | 0 | virtual void RenderLayer() override {} |
30 | | }; |
31 | | |
32 | | } // namespace layers |
33 | | } // namespace mozilla |
34 | | |
35 | | #endif /* GFX_CLIENTREADBACKLAYER_H */ |