Bug 1027362 - Remove the old basic frame counter. r=jrmuizel

This commit is contained in:
Benoit Girard 2014-07-02 16:38:40 -04:00
parent 9d681f5bd5
commit 25279c0512
2 changed files with 0 additions and 32 deletions

View File

@ -536,35 +536,6 @@ BasicLayerManager::AbortTransaction()
mInTransaction = false;
}
static uint16_t sFrameCount = 0;
void
BasicLayerManager::RenderDebugOverlay()
{
if (!gfxPrefs::DrawFrameCounter()) {
return;
}
profiler_set_frame_number(sFrameCount);
uint16_t frameNumber = sFrameCount;
const uint16_t bitWidth = 3;
for (size_t i = 0; i < 16; i++) {
gfxRGBA bitColor;
if ((frameNumber >> i) & 0x1) {
bitColor = gfxRGBA(0, 0, 0, 1.0);
} else {
bitColor = gfxRGBA(1.0, 1.0, 1.0, 1.0);
}
mTarget->NewPath();
mTarget->SetColor(bitColor);
mTarget->Rectangle(gfxRect(bitWidth*i, 0, bitWidth, bitWidth));
mTarget->Fill();
}
// We intentionally overflow at 2^16.
sFrameCount++;
}
bool
BasicLayerManager::EndTransactionInternal(DrawThebesLayerCallback aCallback,
void* aCallbackData,
@ -637,7 +608,6 @@ BasicLayerManager::EndTransactionInternal(DrawThebesLayerCallback aCallback,
if (mWidget) {
FlashWidgetUpdateArea(mTarget);
}
RenderDebugOverlay();
RecordFrame();
PostPresent();

View File

@ -176,8 +176,6 @@ protected:
void FlashWidgetUpdateArea(gfxContext* aContext);
void RenderDebugOverlay();
// Widget whose surface should be used as the basis for ThebesLayer
// buffers.
nsIWidget* mWidget;