summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/throbber_view.mm
diff options
context:
space:
mode:
authorpinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-24 14:46:06 +0000
committerpinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-24 14:46:06 +0000
commite2e6c32d0d6390998a09fc28f4d75f22054fb90f (patch)
tree4a4f6641857296555569941dcffdb46bb973d213 /chrome/browser/cocoa/throbber_view.mm
parent9e13c5064b59b0ffe5c4e24232ce0c59f8b1e578 (diff)
downloadchromium_src-e2e6c32d0d6390998a09fc28f4d75f22054fb90f.zip
chromium_src-e2e6c32d0d6390998a09fc28f4d75f22054fb90f.tar.gz
chromium_src-e2e6c32d0d6390998a09fc28f4d75f22054fb90f.tar.bz2
disable more code for perfbot.
BUG=none TEST=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19117 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/throbber_view.mm')
-rw-r--r--chrome/browser/cocoa/throbber_view.mm3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/cocoa/throbber_view.mm b/chrome/browser/cocoa/throbber_view.mm
index 403c192..0763684 100644
--- a/chrome/browser/cocoa/throbber_view.mm
+++ b/chrome/browser/cocoa/throbber_view.mm
@@ -87,6 +87,7 @@ const float kAnimationIntervalSeconds = 0.03; // 30ms, same as windows
[timer_ invalidate];
timer_ = nil;
+#if 0
// Ensure that the height divides evenly into the width. Cache the
// number of frames in the animation for later.
NSSize imageSize = [image size];
@@ -101,7 +102,6 @@ const float kAnimationIntervalSeconds = 0.03; // 30ms, same as windows
// back to creating one.
NSBitmapImageRep* rep = [[image representations] objectAtIndex:0];
if (![rep isKindOfClass:[NSBitmapImageRep class]]) {
-NSLog(@"**** creating bitmap rep");
[image lockFocus];
NSRect imageRect = NSMakeRect(0, 0, imageSize.width, imageSize.height);
rep = [[[NSBitmapImageRep alloc] initWithFocusedViewRect:imageRect]
@@ -109,6 +109,7 @@ NSLog(@"**** creating bitmap rep");
[image unlockFocus];
}
image_.reset([[CIImage alloc] initWithBitmapImageRep:rep]);
+#endif
#if 0
// TODO(pinkerton): The invalidation of the view to trigger re-draw causes