From 0eff170956af5dc2e171f8bc450d29be7885f27b Mon Sep 17 00:00:00 2001 From: Tetsuharu Ohzeki Date: Thu, 9 Sep 2021 02:02:11 +0000 Subject: [PATCH] Bug 1729816 - part 2: Remove unused CompositableHost::BumpFlashCounter(). r=gfx-reviewers,mattwoodrow Differential Revision: https://phabricator.services.mozilla.com/D125004 --- gfx/layers/composite/CompositableHost.cpp | 1 - gfx/layers/composite/CompositableHost.h | 8 -------- 2 files changed, 9 deletions(-) diff --git a/gfx/layers/composite/CompositableHost.cpp b/gfx/layers/composite/CompositableHost.cpp index c515792f3201..48ba1407b34a 100644 --- a/gfx/layers/composite/CompositableHost.cpp +++ b/gfx/layers/composite/CompositableHost.cpp @@ -32,7 +32,6 @@ CompositableHost::CompositableHost(const TextureInfo& aTextureInfo) : mTextureInfo(aTextureInfo), mCompositorBridgeID(0), mLayer(nullptr), - mFlashCounter(0), mAttached(false), mKeepAttached(false) { MOZ_COUNT_CTOR(CompositableHost); diff --git a/gfx/layers/composite/CompositableHost.h b/gfx/layers/composite/CompositableHost.h index 925c957a6d6b..b4630837de51 100644 --- a/gfx/layers/composite/CompositableHost.h +++ b/gfx/layers/composite/CompositableHost.h @@ -206,13 +206,6 @@ class CompositableHost { TextureHost* aTextureOnWhite); virtual void RemoveTextureHost(TextureHost* aTexture); - // Called every time this is composited - void BumpFlashCounter() { - mFlashCounter = mFlashCounter >= DIAGNOSTIC_FLASH_COUNTER_MAX - ? DIAGNOSTIC_FLASH_COUNTER_MAX - : mFlashCounter + 1; - } - uint64_t GetCompositorBridgeID() const { return mCompositorBridgeID; } const AsyncCompositableRef& GetAsyncRef() const { return mAsyncRef; } @@ -245,7 +238,6 @@ class CompositableHost { uint64_t mCompositorBridgeID; RefPtr mTextureSourceProvider; Layer* mLayer; - uint32_t mFlashCounter; // used when the pref "layers.flash-borders" is true. bool mAttached; bool mKeepAttached; };