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

Unified Diff: cc/resources/image_copy_raster_worker_pool.cc

Issue 375303002: cc: Refactor ResourceProvider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove helper class move api impl to callee. Created 6 years, 5 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
Index: cc/resources/image_copy_raster_worker_pool.cc
diff --git a/cc/resources/image_copy_raster_worker_pool.cc b/cc/resources/image_copy_raster_worker_pool.cc
index 0d4f7441e5222be3b78646df74e05dd6e98dbbae..ea5fd29a0fb62ef74c61d7d0a13efdac05d2c5f1 100644
--- a/cc/resources/image_copy_raster_worker_pool.cc
+++ b/cc/resources/image_copy_raster_worker_pool.cc
@@ -10,6 +10,9 @@
#include "cc/debug/traced_value.h"
#include "cc/resources/resource_pool.h"
#include "cc/resources/scoped_resource.h"
+#include "gpu/command_buffer/client/gles2_interface.h"
+
+using gpu::gles2::GLES2Interface;
namespace cc {
@@ -226,7 +229,10 @@ void ImageCopyRasterWorkerPool::FlushCopies() {
if (!has_performed_copy_since_last_flush_)
return;
- resource_provider_->ShallowFlushIfSupported();
+ GLES2Interface* gl = resource_provider_->ContextGL();
+ if (gl)
+ gl->ShallowFlushCHROMIUM();
+
has_performed_copy_since_last_flush_ = false;
}

Powered by Google App Engine
This is Rietveld 408576698