| 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
|
| + // 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());
|
|
|