From patchwork Wed Jan 18 21:47:12 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jesse Barker X-Patchwork-Id: 6286 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id E9FA323E07 for ; Wed, 18 Jan 2012 21:47:14 +0000 (UTC) Received: from mail-bk0-f52.google.com (mail-bk0-f52.google.com [209.85.214.52]) by fiordland.canonical.com (Postfix) with ESMTP id D39D7A18045 for ; Wed, 18 Jan 2012 21:47:14 +0000 (UTC) Received: by bkbzt4 with SMTP id zt4so3599882bkb.11 for ; Wed, 18 Jan 2012 13:47:14 -0800 (PST) Received: by 10.204.10.73 with SMTP id o9mr3619235bko.99.1326923234579; Wed, 18 Jan 2012 13:47:14 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.205.82.144 with SMTP id ac16cs161166bkc; Wed, 18 Jan 2012 13:47:14 -0800 (PST) Received: by 10.180.82.41 with SMTP id f9mr39635064wiy.7.1326923233009; Wed, 18 Jan 2012 13:47:13 -0800 (PST) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id cj3si12892115wib.25.2012.01.18.13.47.12 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 18 Jan 2012 13:47:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) client-ip=91.189.90.7; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) smtp.mail=bounces@canonical.com Received: from ackee.canonical.com ([91.189.89.26]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1RndLc-00070t-Pt for ; Wed, 18 Jan 2012 21:47:12 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id B31C4E0025 for ; Wed, 18 Jan 2012 21:47:12 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: glmark2 X-Launchpad-Branch: ~glmark2-dev/glmark2/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 190 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~glmark2-dev/glmark2/trunk] Rev 190: Create a new TextRenderer each time through the loop so that it is initialized with the newly res... Message-Id: <20120118214712.10005.21687.launchpad@ackee.canonical.com> Date: Wed, 18 Jan 2012 21:47:12 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="14681"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: a5170870ecccea6c1f9f63ce18461ebd01377dd9 ------------------------------------------------------------ revno: 190 committer: Jesse Barker branch nick: trunk timestamp: Wed 2012-01-18 13:44:06 -0800 message: Create a new TextRenderer each time through the loop so that it is initialized with the newly reset canvas. modified: src/main.cpp --- lp:glmark2 https://code.launchpad.net/~glmark2-dev/glmark2/trunk You are subscribed to branch lp:glmark2. To unsubscribe from this branch go to https://code.launchpad.net/~glmark2-dev/glmark2/trunk/+edit-subscription === modified file 'src/main.cpp' --- src/main.cpp 2012-01-18 17:13:28 +0000 +++ src/main.cpp 2012-01-18 21:44:06 +0000 @@ -166,7 +166,6 @@ do_benchmark(Canvas &canvas, vector &benchmarks) { static const unsigned int fps_interval = 500000; - TextRenderer fps_renderer(canvas); unsigned score = 0; unsigned int benchmarks_run = 0; @@ -181,6 +180,7 @@ Benchmark *bench = *bench_iter; uint64_t fps_timestamp = Util::get_timestamp_us(); Scene &scene = bench->setup_scene(); + TextRenderer fps_renderer(canvas); if (!scene.name().empty()) { Log::info("%s", scene.info_string().c_str());