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

Side by Side Diff: cc/resources/scoped_ui_resource.cc

Issue 22870016: Update the nine patch layer to use UI resources (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments by danakj and aelias. Modified tests. Created 7 years, 3 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "cc/resources/scoped_ui_resource.h" 5 #include "cc/resources/scoped_ui_resource.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "cc/trees/layer_tree_host.h" 9 #include "cc/trees/layer_tree_host.h"
10 10
(...skipping 20 matching lines...) Expand all
31 host_->DeleteUIResource(id_); 31 host_->DeleteUIResource(id_);
32 } 32 }
33 } 33 }
34 34
35 scoped_refptr<UIResourceBitmap> ScopedUIResource::GetBitmap( 35 scoped_refptr<UIResourceBitmap> ScopedUIResource::GetBitmap(
36 UIResourceId uid, 36 UIResourceId uid,
37 bool resource_lost) { 37 bool resource_lost) {
38 return bitmap_; 38 return bitmap_;
39 } 39 }
40 40
41 UIResourceId ScopedUIResource::id() { return id_; }
42
41 ScopedUIResource::ScopedUIResource() {} 43 ScopedUIResource::ScopedUIResource() {}
42 44
43 } // namespace cc 45 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698