summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorpinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-09 18:47:18 +0000
committerpinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-09 18:47:18 +0000
commit57644767de98ad87692dfae268858fb24ec66d15 (patch)
tree36fc344e2e21667fd3c1c488faf34d44ce05b6a8 /chrome
parentcc195001f9c40599dee3c356d4c32715e026c84d (diff)
downloadchromium_src-57644767de98ad87692dfae268858fb24ec66d15.zip
chromium_src-57644767de98ad87692dfae268858fb24ec66d15.tar.gz
chromium_src-57644767de98ad87692dfae268858fb24ec66d15.tar.bz2
Perf bots are "happy enough", enable the throbber for real.
BUG=12699 TEST=throbber animations in tabs while page loading. Review URL: http://codereview.chromium.org/149400 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20292 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/cocoa/throbber_view.mm32
1 files changed, 10 insertions, 22 deletions
diff --git a/chrome/browser/cocoa/throbber_view.mm b/chrome/browser/cocoa/throbber_view.mm
index fc5f175..bfdf4bb 100644
--- a/chrome/browser/cocoa/throbber_view.mm
+++ b/chrome/browser/cocoa/throbber_view.mm
@@ -107,28 +107,16 @@ static const float kAnimationIntervalSeconds = 0.03; // 30ms, same as windows
}
image_.reset([[CIImage alloc] initWithBitmapImageRep:rep]);
-#if 1
-// TODO(pinkerton): The invalidation of the view to trigger re-draw causes
-// the entire title-bar to redraw (you can see it with QuartzDebug). For some
-// reason, setting isOpaque on this view, or any of its parent views, doesn't
-// help. As a result, enabling this timer causes new tab to take a very long
-// time on a loaded machine, crushing our perf bot when it's under load. For
-// now, I'm disabling the timer so we draw the first frame of the animation,
-// but nothing more. There are a couple of ways we can fix this:
-// 1) Try to figure out why the invalidate is invalidating the entire title bar
-// 2) Find some way to draw only the pixels we want and nothing else, but I
-// don't know how we'd do that.
- if (numFrames_ > 1) {
- // Start a timer for the animation frames.
- target_.reset([[TimerTarget alloc] initWithThrobber:self]);
- timer_ =
- [NSTimer scheduledTimerWithTimeInterval:kAnimationIntervalSeconds
- target:target_.get()
- selector:@selector(animate:)
- userInfo:nil
- repeats:YES];
- }
-#endif
+ if (numFrames_ > 1) {
+ // Start a timer for the animation frames.
+ target_.reset([[TimerTarget alloc] initWithThrobber:self]);
+ timer_ =
+ [NSTimer scheduledTimerWithTimeInterval:kAnimationIntervalSeconds
+ target:target_.get()
+ selector:@selector(animate:)
+ userInfo:nil
+ repeats:YES];
+ }
}
@end