Index: ui/android/resources/ui_resource_android.cc |
diff --git a/ui/android/resources/ui_resource_android.cc b/ui/android/resources/ui_resource_android.cc |
index bc85bb88666a50033e24bc5d439c364d9ce7d5ab..818b10249f13cadfdce2774172cd784c37f9e116 100644 |
--- a/ui/android/resources/ui_resource_android.cc |
+++ b/ui/android/resources/ui_resource_android.cc |
@@ -23,6 +23,14 @@ UIResourceAndroid::~UIResourceAndroid() { |
provider_->DeleteUIResource(id_); |
} |
+const SkBitmap& UIResourceAndroid::GetSkBitmap() { |
+ // TODO(twellington): Would it be better to use CreateSkBitmapFromJavaBitmap |
+ // directly rather than exposing this method? I mostly did it this way because |
pedro (no code reviews)
2015/09/29 01:14:40
I don't know the answer to this question.
Theresa
2015/10/01 01:57:31
Since this is going to undergo another major refac
|
+ // it was easy/quick to implement w/ our current contextual search code. |
+ DCHECK(!bitmap_.empty()); |
+ return bitmap_; |
+} |
+ |
cc::UIResourceBitmap UIResourceAndroid::GetBitmap(cc::UIResourceId uid, |
bool resource_lost) { |
DCHECK(!bitmap_.empty()); |