Files
tubestation/gfx/layers/wr/WebRenderTextLayer.h
Kartikaya Gupta 6de178fbc1 Bug 1359748 - Extract a WebRenderLayer.{h,cpp} from WebRenderLayerManager.{h,cpp}. r=jrmuizel
Other than moving the code into new files, this just cleans up includes
in the modified and dependent files.

MozReview-Commit-ID: JpJ8rwOkfOO
2017-04-27 11:28:31 -04:00

43 lines
1.1 KiB
C++

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef GFX_WEBRENDERTEXTLAYER_H
#define GFX_WEBRENDERTEXTLAYER_H
#include "gfxUtils.h"
#include "Layers.h"
#include "mozilla/layers/WebRenderLayer.h"
#include "mozilla/layers/WebRenderLayerManager.h"
namespace mozilla {
namespace layers {
class WebRenderTextLayer : public WebRenderLayer,
public TextLayer {
public:
explicit WebRenderTextLayer(WebRenderLayerManager* aLayerManager)
: TextLayer(aLayerManager, static_cast<WebRenderLayer*>(this))
{
MOZ_COUNT_CTOR(WebRenderTextLayer);
}
protected:
virtual ~WebRenderTextLayer()
{
MOZ_COUNT_DTOR(WebRenderTextLayer);
}
public:
Layer* GetLayer() override { return this; }
void RenderLayer(wr::DisplayListBuilder& aBuilder) override;
};
} // namespace layers
} // namespace mozilla
#endif // GFX_WEBRENDERTEXTLAYER_H