fune/gfx/layers/wr/WebRenderLayersLogging.h
Kartikaya Gupta c832839650 Bug 1411627 - Send the applied offset for sticky frames to WR. r=mstange
There are cases where we do a main-thread paint at a scroll position
where sticky offsets have been applied in order to keep sticky items
visually unmoving. From that paint, it's possible to do an async-scroll
in the direction that reduces the sticky offset. In order for WR to
handle this case properly we need to tell WR how much of a sticky offset
was already applied on the main thread.

MozReview-Commit-ID: 79DsfPpsIfA

--HG--
extra : rebase_source : e39316702cff3bd4ee6721c7503a1a9267734cd8
2017-11-07 10:16:48 -05:00

34 lines
1.1 KiB
C++

/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
/* 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_WEBRENDERLAYERSLOGGING_H
#define GFX_WEBRENDERLAYERSLOGGING_H
#include "mozilla/webrender/WebRenderTypes.h"
namespace mozilla {
namespace layers {
void
AppendToString(std::stringstream& aStream, wr::MixBlendMode aMixBlendMode,
const char* pfx="", const char* sfx="");
void
AppendToString(std::stringstream& aStream, wr::ImageRendering aTextureFilter,
const char* pfx="", const char* sfx="");
void
AppendToString(std::stringstream& aStream, wr::LayoutVector2D aVector,
const char* pfx="", const char* sfx="");
} // namespace layers
} // namespace mozilla
// this ensures that the WebRender AppendToString's are in scope for Stringify
#include "LayersLogging.h"
#endif // GFX_WEBRENDERLAYERSLOGGING_H