| Index: cc/resources/raster_worker_pool.cc
|
| diff --git a/cc/resources/raster_worker_pool.cc b/cc/resources/raster_worker_pool.cc
|
| index b017038ba53f572523c255e59c1623ce6a9a89c7..da9874d406755c6af6dd930de58e291f61e6b93e 100644
|
| --- a/cc/resources/raster_worker_pool.cc
|
| +++ b/cc/resources/raster_worker_pool.cc
|
| @@ -567,13 +567,12 @@ void RasterWorkerPool::RunGpuRasterTasks(const RasterTaskVector& tasks) {
|
| if (tasks.empty())
|
| return;
|
|
|
| - blink::WebGraphicsContext3D* context = context_provider_->Context3d();
|
| - if (!context->makeContextCurrent())
|
| - return;
|
| + context_provider_->MakeGrContextCurrent();
|
|
|
| GrContext* gr_context = context_provider_->GrContext();
|
| // TODO(alokp): Implement TestContextProvider::GrContext().
|
| - if (gr_context) gr_context->resetContext();
|
| + if (gr_context)
|
| + gr_context->resetContext();
|
|
|
| for (RasterTaskVector::const_iterator it = tasks.begin();
|
| it != tasks.end(); ++it) {
|
| @@ -586,7 +585,8 @@ void RasterWorkerPool::RunGpuRasterTasks(const RasterTaskVector& tasks) {
|
| }
|
|
|
| // TODO(alokp): Implement TestContextProvider::GrContext().
|
| - if (gr_context) gr_context->flush();
|
| + if (gr_context)
|
| + gr_context->flush();
|
| }
|
|
|
| scoped_refptr<internal::WorkerPoolTask>
|
|
|