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

Unified Diff: cc/resources/raster_worker_pool.cc

Issue 126973002: Decouple cc::FakeWebGraphicsContext3D from blink::WGC3D (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/output/output_surface_unittest.cc ('k') | cc/resources/resource_update_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « cc/output/output_surface_unittest.cc ('k') | cc/resources/resource_update_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698