Index: cc/resources/picture.cc |
diff --git a/cc/resources/picture.cc b/cc/resources/picture.cc |
index 5b9057160b2dadd1125dd7bc7117b6e368355d81..6530866d6a03dce9a4d6374a53693fe70f73cdaa 100644 |
--- a/cc/resources/picture.cc |
+++ b/cc/resources/picture.cc |
@@ -175,17 +175,13 @@ Picture::~Picture() { |
TRACE_DISABLED_BY_DEFAULT("cc.debug"), "cc::Picture", this); |
} |
-bool Picture::IsSuitableForGpuRasterization() const { |
+bool Picture::IsSuitableForGpuRasterization(const char** reason) const { |
DCHECK(picture_); |
- // TODO(alokp): SkPicture::suitableForGpuRasterization needs a GrContext. |
- // Ideally this GrContext should be the same as that for rasterizing this |
- // picture. But we are on the main thread while the rasterization context |
- // may be on the compositor or raster thread. |
- // SkPicture::suitableForGpuRasterization is not implemented yet. |
- // Pass a NULL context for now and discuss with skia folks if the context |
- // is really needed. |
- return picture_->suitableForGpuRasterization(NULL); |
+ // TODO(hendrikw): SkPicture::suitableForGpuRasterization takes a GrContext. |
+ // Currently the GrContext isn't used, and should probably be removed from |
+ // skia. |
+ return picture_->suitableForGpuRasterization(nullptr, reason); |
} |
int Picture::ApproximateOpCount() const { |