mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-29 18:18:27 +00:00
0c05a61d5f
- Bug 1208584 - Silence unconstrained size warning by default. r=jfkthame (31f1771976) - Bug 1248864 - Part 1: Move RestyleManager.h to EXPORTS.mozilla. r=dholbert (2ab8ae0d6a) - Bug 1248864 - Part 2: Add skeleton ServoRestyleManager and a RestyleManagerHandle smart pointer. r=dholbert (8c9e032edc) - Bug 1248864 - Part 3: Use RestyleManagerHandle instead of concrete restyle manager class. r=dholbert (ec282e77fa) - Bug 1237825. Find the root scroll frame even if the root element doesn't have a primary frame. r=mstange (ed4f14ebd4) - Bug 1237813. Refactor nsLayoutUtils::FindScrollableFrameFor to use GetScrollFrameFromContent. r=botond (403968c84c) - Bug 1238777: Bail early from ComputeSnappedImageDrawingParameters if we're somehow drawing from a 0-sized subimage. r=tn (da3ccc27f0) - Bug 1250377 - Part 1: Use MOZ_STYLO environment variable to switch on Servo-backed style system. r=bholley (4ce8d0bcf0) - Bug 1250377 - Part 2: Stub out enough ServoStyleSet methods to be able to create one for a document. r=bholley (1ef3b5c843) - Bug 1250377 - Part 3: Create a ServoStyleSet for HTML documents in content docshells. r=bholley (4ed1a5e6fc) - Bug 1250790 - Don't try to add CSSStyleSheets from the style sheet service to a ServoStyleSet. r=bholley (f1291300d7) - Bug 1247478: Rename FirstAdditionalAuthorSheet() to GetFirstAdditionalAuthorSheet(), since it can return null. r=heycam (cffd112172) - Bug 1253007 - part 1 - use UniquePtr for RangePaintInfo in nsPresShell.cpp; r=dholbert (ad14ef91b7) - Bug 1253007 - part 2 - pass a const& to PaintRangePaintInfo; rs=dholbert (9317f5b704) - Bug 1171371 - On memory-pressure, remove any stale images from the visible images list. r=tn (9108fdc561) - Bug 1251150. Add some crash annotations to try to track down a crash bug. r=dholbert (0b81d26d89) - Bug 1257315 (Part 1) - Add a visualization of visibility tracking to the APZ minimap. r=botond,mattwoodrow (c15a5ce0f8) - Bug 1257315 (Part 2) - Release old visible regions info when new info is available or a layers ID is no longer used. r=botond (3c5a1fb6e0) - Rename PCompositor to PCompositorBridge. (bug 1258479 part 1, r=mattwoodrow) (77390ba817) - Bug 1134385. Silk documentation. r=kats (23f43fa035) - Bug 1134385 follow-up - fix link to image in documentation. DONTBUILD because NPOTB. r=me (68809f8347) - Bug 1238743 - remove a bogus assertion in TextureClient.cpp. r=kats (6b10b546c5) - Bug 1241484 - Null check mActor in WaitForCompositorRecycle. r=nical (95f848830f) - Bug 1250117 - Fix b2g timeouts when gralloc is disabled. r=sotaro (2e67d92251) - Bug 1250117 - Trivial b2g build fix. r=me (9fab71821d) - Bug 1249273 - Enable BufferTextureHost to recycle a TextureSource that is not marked as owned. r=sotaro (f09b043af6) - Bug 1250500 - Avoid copying BufferTextureHost when possible. r=sotaro (8f44549c6c) - Bug 1248323: P1. Add support for YUV422 IOSurface. r=nical (e3eb53aa1c) - Bug 1248323: P2. Add readback code for converting YUV422 MacIOSurfaces into RGB. r=nical (d93574fd13) - Bug 1248323: P3. Add test for NV12/YUV422 readback. r=me (5373a2f839) - Bug 1249273 - Lazily prepare TextureSources and recycle them when possible in ImageHost. r=sotaro (66bb273c84) - Bug 1251910: Fix YUV422 IOSurface. r=mattwoodrow. (bfdbb2f60b)
62 lines
1.5 KiB
C++
62 lines
1.5 KiB
C++
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
* vim: sw=2 ts=8 et :
|
|
*/
|
|
/* 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_CompositorLRU_h
|
|
#define mozilla_CompositorLRU_h
|
|
|
|
#include "mozilla/StaticPtr.h"
|
|
|
|
#include "nsISupportsImpl.h"
|
|
#include "nsTArray.h"
|
|
|
|
#include <utility>
|
|
|
|
namespace mozilla {
|
|
namespace layers {
|
|
|
|
class PCompositorBridgeParent;
|
|
|
|
class CompositorLRU final
|
|
{
|
|
typedef std::pair<PCompositorBridgeParent*, uint64_t> CompositorLayerPair;
|
|
public:
|
|
NS_INLINE_DECL_THREADSAFE_REFCOUNTING(CompositorLRU)
|
|
|
|
static void Init();
|
|
static CompositorLRU* GetSingleton();
|
|
|
|
/**
|
|
* Adds the (PCompositorBridgeParent, LayerId) pair to the LRU pool. If
|
|
* the pool size grows over mLRUSize, the oldest PCompositorBridgeParent
|
|
* is evicted.
|
|
*/
|
|
void Add(PCompositorBridgeParent* aCompositor, const uint64_t& id);
|
|
|
|
/**
|
|
* Remove the (PCompositorBridgeParent, LayersId) pair from the LRU pool.
|
|
*/
|
|
void Remove(PCompositorBridgeParent* aCompositor, const uint64_t& id);
|
|
|
|
/**
|
|
* Remove all PCompositorBridgeParents from the LRU pool.
|
|
*/
|
|
void Remove(PCompositorBridgeParent* aCompositor);
|
|
|
|
private:
|
|
static StaticRefPtr<CompositorLRU> sSingleton;
|
|
|
|
CompositorLRU();
|
|
~CompositorLRU();
|
|
uint32_t mLRUSize;
|
|
nsTArray<CompositorLayerPair> mLRU;
|
|
};
|
|
|
|
} // namespace layers
|
|
} // namespace mozilla
|
|
|
|
#endif // mozilla_CompositorLRU_h
|