Files
palemoon27/gfx/layers/basic/X11TextureSourceBasic.h
T
roytam1 d88cb9e205 import changes from `dev' branch of rmottola/Arctic-Fox:
- Bug 1193062 - Add PanGestureBlockState. r=kats (a8da88a934)
- Bug 1193062 - Make PanGestureInput transform processing work like ScrollWheelInput processing. r=kats (fb17c120e8)
- Bug 1180780 - Enable handling of pixel-scrolling wheel events with APZ on Windows and Linux. r=mstange (41d8fd5ed2)
- missing part of Bug 1013412 (4fa14a56d9)
- Make sure that confirmed APZ wheel targets are always scrollable. (bug 1154132, r=kats) (c35e3a34ca)
- breakage fixes (96a1e3c36a)
- Bug 1153711 - Do not discard a component of a fling if an APZC further in the handoff chain has room to scroll in that direction. r=kats (4f35dfd913)
- Bug 1193062 - Set correct axis velocities when using PanGestureInput events. r=kats (7036040c68)
- Clamp APZ wheel animations to their scrollable range. (bug 1152011 part 2, r=botond) (45c4925fee)
- Bug 1193062 - CanScrollWithWheel needs to use ParentLayerCoords for the scroll delta. r=kats (20a3c4ac6b)
- Bug 1193062 - Make OverscrollHandoffChain::FindFirstScrollable and AsyncPanZoomController::CanScroll able to deal with PanGestureInput events. r=kats (d87ec270db)
- Bug 1193062 - Add mHandledByAPZ on PanGestureInput and ScrollWheelInput, and sync the information to the WidgetWheelEvent. r=kats (6e72f5885f)
- Bug 1016035 - Delay the processing of a PanGestureInput block until we know whether it's a swipe. r=kats (77d1dceb04)
- Bug 1145084 - Ensure that the 300ms content timeout in the APZ code also applies to the touch-action allowed behaviours. r=botond (45f58fe247)
- Bug 1193062 - Make AllowScrollHandoff work for both ScrollWheelInput and PanGestureInput blocks. r=kats (d335008b0a)
- Bug 1193062 - Remove mPanGestureState. r=kats (774bb3dedf)
- Bug 1193062 - Use ScrollSource::Wheel for pan gesture events. r=kats (e9328b0bc4)
- Bug 1193062 - Don't use PanGestureInput events for instant wheel scrolling. r=kats (7d89c5dc2e)
- Bug 1175564 - don't lock y-axis if pan displacement is 0. r=kats (372d76c914)
- Bug 1193062 - Process pan gesture deltas in begin+end events. r=kats (f29072bf8f)
- Bug 1193062 - Fix UntransformVector w coordinate checks. r=kip (73b459e459)
- Bug 1016035 - Replay the queue to the swipe tracker once the swipe start confirmation arrives. r=kats (9891444d4f)
- Bug 1016035 - Don't wait for content to say that we need to swipe if APZ has enough information. r=kats (2b94c25bd3)
- Bug 1016035 - Swallow the rest of the scroll gesture after swiping without APZ. r=kats (f9250388f9)
- Fix crashes when a wheel transaction has a null confirmed apzc. (bug 1147249, r=kats) (ef898a9f3a)
- Bug 1176001 - Turn unconditional log into a manually-enabled log. r=botond (1d866b1ffa)
- Don't have a default repaint interval of "never" for APZ animations. (bug 1152138, r=botond) (7e276ba862)
- Bug 1152051 - Ensure that destroying an overscroll animation always clears the state Axis tracks about it. r=Cwiiis (1273aac828)
- Request content repaints during APZ wheel animations. (bug 1152138, r=botond) (ba3e24011b)
- Bug 1164557 - Use COORDINATE_EPSILON in IsZero(). r=kats (c07e506607)
- Bug 1164557 - Weed out spurious calls to Axis::OverscrollBy() caused by rounding error r=kats (15f8d18a7e)
- Bug 1186164 - When clearing the overscroll animation state, make sure# etOverscroll() continues to reflect the correct direction of overscroll. r=Cwiiis (282c63383c)
- Bug 1198900 - Don't call OnTouchCancel when the current block is not a touch block. r=botond (b724d8d3ef)
- Bug 788873 - Only rebind a GLXPixmap if the texture has changed. r=karlt (e1f72858ee)
- Bug 1169270 - Minor style fixes. r=dvander (494449170d)
- Bug 1145702 - Make the assertion in Axis::GetOverscroll() more informative. r=Cwiiis (dff257bbbd)
- Bug 1152051 - During an overscroll animation, detect a peak even if a sample has a velocity of exaclty zero. r=Cwiiis (a5aad5349f)
- Bug 1201101 - Enable axis-locking over multiple APZCs. r=botond (21574b80ec)
- test of Bug 1143522 - Convert Layer::mClipRect to ParentLayerIntRect. r=botond (8f729ca8b0)
- Bug 1159398 - Set the controller thread when running APZ gtests. r=dvander (4349b6722b)
- Bug 1148350 - Add a test. r=botond (72e3c0716d)
- Bug 1152051 - Gtest. r=Cwiiis,kats (bf337c0d6d)
- missing of Bug 1158122 - Remove most occurences of nsIntRect in gfx/tests. r=nical (a328773d9d)
- missing test of Bug 1160566 - Make FrameMetrics.mCompositionBounds private (091db42632)
- Bug 1163845 - Unify handling of time in APZ gtests. r=kats (2366690fe7)
- Fix APZ scroll wheel animations often prematurely ending on the first frame. (bug 1157409, r=kats) (78cc0e2292)
- Bug 1169689 - Make sure we don't end up with a spurious velocity if we're not going to be panning. r=botond (8911802134)
- Bug 1203744 - Fix the SCREEN blend mode with CompositorOGL when the source data is unpremultiplied. r=dvander (e256f83a14)
2022-02-04 11:50:49 +08:00

53 lines
1.5 KiB
C++

/* -*- Mode: C++; tab-width: 20; 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 MOZILLA_GFX_X11TEXTURESOURCEBASIC__H
#define MOZILLA_GFX_X11TEXTURESOURCEBASIC__H
#include "mozilla/layers/BasicCompositor.h"
#include "mozilla/layers/TextureHostBasic.h"
#include "mozilla/layers/X11TextureHost.h"
#include "mozilla/gfx/2D.h"
namespace mozilla {
namespace layers {
class BasicCompositor;
// TextureSource for Xlib-backed surfaces.
class X11TextureSourceBasic
: public TextureSourceBasic
, public X11TextureSource
{
public:
X11TextureSourceBasic(BasicCompositor* aCompositor, gfxXlibSurface* aSurface);
virtual X11TextureSourceBasic* AsSourceBasic() override { return this; }
virtual gfx::IntSize GetSize() const override;
virtual gfx::SurfaceFormat GetFormat() const override;
virtual gfx::SourceSurface* GetSurface(gfx::DrawTarget* aTarget) override;
virtual void DeallocateDeviceData() override { }
virtual void SetCompositor(Compositor* aCompositor) override;
virtual void Updated() override { }
static gfx::SurfaceFormat ContentTypeToSurfaceFormat(gfxContentType aType);
protected:
RefPtr<BasicCompositor> mCompositor;
RefPtr<gfxXlibSurface> mSurface;
RefPtr<gfx::SourceSurface> mSourceSurface;
};
} // namespace layers
} // namespace mozilla
#endif // MOZILLA_GFX_X11TEXTURESOURCEBASIC__H