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

Side by Side Diff: chrome/browser/icon_loader.cc

Issue 65012: Move skia to DEPS, and put it in third_party. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/icon_loader.h" 5 #include "chrome/browser/icon_loader.h"
6 6
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "base/thread.h" 8 #include "base/thread.h"
9 #include "chrome/browser/browser_process.h" 9 #include "chrome/browser/browser_process.h"
10 #include "skia/include/SkBitmap.h" 10 #include "third_party/skia/include/core/SkBitmap.h"
11 11
12 IconLoader::IconLoader(const IconGroupID& group, IconSize size, 12 IconLoader::IconLoader(const IconGroupID& group, IconSize size,
13 Delegate* delegate) 13 Delegate* delegate)
14 : group_(group), 14 : group_(group),
15 icon_size_(size), 15 icon_size_(size),
16 bitmap_(NULL), 16 bitmap_(NULL),
17 delegate_(delegate) { 17 delegate_(delegate) {
18 } 18 }
19 19
20 IconLoader::~IconLoader() { 20 IconLoader::~IconLoader() {
21 delete bitmap_; 21 delete bitmap_;
22 } 22 }
23 23
24 void IconLoader::Start() { 24 void IconLoader::Start() {
25 target_message_loop_ = MessageLoop::current(); 25 target_message_loop_ = MessageLoop::current();
26 26
27 g_browser_process->file_thread()->message_loop()->PostTask(FROM_HERE, 27 g_browser_process->file_thread()->message_loop()->PostTask(FROM_HERE,
28 NewRunnableMethod(this, &IconLoader::ReadIcon)); 28 NewRunnableMethod(this, &IconLoader::ReadIcon));
29 } 29 }
30 30
31 void IconLoader::NotifyDelegate() { 31 void IconLoader::NotifyDelegate() {
32 delegate_->OnBitmapLoaded(this, bitmap_); 32 delegate_->OnBitmapLoaded(this, bitmap_);
33 bitmap_ = NULL; 33 bitmap_ = NULL;
34 } 34 }
OLDNEW
« no previous file with comments | « chrome/browser/history/thumbnail_database.cc ('k') | chrome/browser/renderer_host/backing_store_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698