image/imgTools.h
author Andrew Osmond <aosmond@mozilla.com>
Mon, 04 Jun 2018 08:29:50 -0400
changeset 442380 453d21db2a306f4800e8be4d77f6d61000cb9a0c
parent 260794 21e38aa30e1b6f18f2e9fbb6853043e13a9d5448
child 448947 6f3709b3878117466168c40affa7bca0b60cf75b
permissions -rw-r--r--
Bug 1465619 - Part 10. Re-add support for discarding animated image frames. r=tnikkel AnimatedFrameDiscardingQueue subclasses AnimationFrameBuffer to allow a cleaner abstraction over the behaviour change when we cross the threshold of too high a memory footprint for an animated image. The next patch will build on top of this to provide an abstraction to reuse the discarded frames. Differential Revision: https://phabricator.services.mozilla.com/D7515

/* -*- 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 mozilla_image_imgITools_h
#define mozilla_image_imgITools_h

#include "imgITools.h"

#define NS_IMGTOOLS_CID \
{ /* 3d8fa16d-c9e1-4b50-bdef-2c7ae249967a */         \
     0x3d8fa16d,                                     \
     0xc9e1,                                         \
     0x4b50,                                         \
    {0xbd, 0xef, 0x2c, 0x7a, 0xe2, 0x49, 0x96, 0x7a} \
}

namespace mozilla {
namespace image {

class imgTools final : public imgITools
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_IMGITOOLS

  imgTools();

private:
  virtual ~imgTools();
};

} // namespace image
} // namespace mozilla

#endif // mozilla_image_imgITools_h