Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(104)

Side by Side Diff: chrome/browser/tab_contents/thumbnail_generator.cc

Issue 6312156: Change includes of gfx/* to ui/gfx/* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/tab_contents/thumbnail_generator.h" 5 #include "chrome/browser/tab_contents/thumbnail_generator.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <map> 8 #include <map>
9 9
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
11 #include "base/scoped_ptr.h" 11 #include "base/scoped_ptr.h"
12 #include "base/time.h" 12 #include "base/time.h"
13 #include "build/build_config.h" 13 #include "build/build_config.h"
14 #include "chrome/browser/browser_process.h" 14 #include "chrome/browser/browser_process.h"
15 #include "chrome/browser/history/top_sites.h" 15 #include "chrome/browser/history/top_sites.h"
16 #include "chrome/browser/profiles/profile.h" 16 #include "chrome/browser/profiles/profile.h"
17 #include "chrome/browser/renderer_host/backing_store.h" 17 #include "chrome/browser/renderer_host/backing_store.h"
18 #include "chrome/browser/renderer_host/render_process_host.h" 18 #include "chrome/browser/renderer_host/render_process_host.h"
19 #include "chrome/browser/renderer_host/render_view_host.h" 19 #include "chrome/browser/renderer_host/render_view_host.h"
20 #include "chrome/browser/tab_contents/tab_contents.h" 20 #include "chrome/browser/tab_contents/tab_contents.h"
21 #include "chrome/common/notification_service.h" 21 #include "chrome/common/notification_service.h"
22 #include "chrome/common/property_bag.h" 22 #include "chrome/common/property_bag.h"
23 #include "chrome/common/thumbnail_score.h" 23 #include "chrome/common/thumbnail_score.h"
24 #include "gfx/color_utils.h"
25 #include "gfx/rect.h"
26 #include "gfx/skbitmap_operations.h"
27 #include "googleurl/src/gurl.h" 24 #include "googleurl/src/gurl.h"
28 #include "skia/ext/bitmap_platform_device.h" 25 #include "skia/ext/bitmap_platform_device.h"
29 #include "skia/ext/image_operations.h" 26 #include "skia/ext/image_operations.h"
30 #include "skia/ext/platform_canvas.h" 27 #include "skia/ext/platform_canvas.h"
31 #include "third_party/skia/include/core/SkBitmap.h" 28 #include "third_party/skia/include/core/SkBitmap.h"
29 #include "ui/gfx/color_utils.h"
30 #include "ui/gfx/rect.h"
31 #include "ui/gfx/skbitmap_operations.h"
32 32
33 #if defined(OS_WIN) 33 #if defined(OS_WIN)
34 #include "chrome/common/section_util_win.h" 34 #include "chrome/common/section_util_win.h"
35 #endif 35 #endif
36 36
37 // Overview 37 // Overview
38 // -------- 38 // --------
39 // This class provides current thumbnails for tabs. The simplest operation is 39 // This class provides current thumbnails for tabs. The simplest operation is
40 // when a request for a thumbnail comes in, to grab the backing store and make 40 // when a request for a thumbnail comes in, to grab the backing store and make
41 // a smaller version of that. 41 // a smaller version of that.
(...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after
676 return false; 676 return false;
677 // Skip if we don't have to udpate the existing thumbnail. 677 // Skip if we don't have to udpate the existing thumbnail.
678 ThumbnailScore current_score; 678 ThumbnailScore current_score;
679 if (is_known && 679 if (is_known &&
680 top_sites->GetPageThumbnailScore(url, &current_score) && 680 top_sites->GetPageThumbnailScore(url, &current_score) &&
681 !current_score.ShouldConsiderUpdating()) 681 !current_score.ShouldConsiderUpdating())
682 return false; 682 return false;
683 683
684 return true; 684 return true;
685 } 685 }
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents_view_mac.h ('k') | chrome/browser/tab_contents/thumbnail_generator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698