2014-05-21 21:29:49 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2017-10-28 02:10:06 +03:00
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
2014-05-21 21:29:49 +04:00
|
|
|
/* 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_layers_CompositorBench_h
|
|
|
|
#define mozilla_layers_CompositorBench_h
|
|
|
|
|
|
|
|
#include "mozilla/gfx/Rect.h" // for Rect
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace layers {
|
|
|
|
|
|
|
|
class Compositor;
|
|
|
|
|
|
|
|
// Uncomment this line to rebuild with compositor bench.
|
|
|
|
// #define MOZ_COMPOSITOR_BENCH
|
|
|
|
|
|
|
|
#ifdef MOZ_COMPOSITOR_BENCH
|
2016-05-13 23:15:17 +03:00
|
|
|
void CompositorBench(Compositor* aCompositor, const gfx::IntRect& aScreenRect);
|
2014-05-21 21:29:49 +04:00
|
|
|
#else
|
2016-05-13 23:15:17 +03:00
|
|
|
static inline void CompositorBench(Compositor* aCompositor,
|
|
|
|
const gfx::IntRect& aScreenRect) {}
|
2014-05-21 21:29:49 +04:00
|
|
|
#endif
|
|
|
|
|
2015-07-13 18:25:42 +03:00
|
|
|
} // namespace layers
|
|
|
|
} // namespace mozilla
|
2014-05-21 21:29:49 +04:00
|
|
|
|
|
|
|
#endif
|