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

Unified Diff: cc/resources/resource_provider.cc

Issue 2394833002: cc: Use COMMANDS_COMPLETED on ARM so native GMBs work correctly.
Patch Set: Created 4 years, 2 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/raster/one_copy_raster_buffer_provider.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/resource_provider.cc
diff --git a/cc/resources/resource_provider.cc b/cc/resources/resource_provider.cc
index 49dae1d6ae988284713422c430f0f1e8a2f814e8..b400b7dbc341c06c28d0a179335ab663eb6eaa2d 100644
--- a/cc/resources/resource_provider.cc
+++ b/cc/resources/resource_provider.cc
@@ -1912,13 +1912,6 @@ void ResourceProvider::LazyCreateImage(Resource* resource) {
GLES2Interface* gl = ContextGL();
DCHECK(gl);
-#if defined(OS_CHROMEOS) && defined(ARCH_CPU_ARM_FAMILY)
- // TODO(reveman): This avoids a performance problem on ARM ChromeOS
- // devices. This only works with shared memory backed buffers.
- // crbug.com/580166
- DCHECK_EQ(resource->gpu_memory_buffer->GetHandle().type,
- gfx::SHARED_MEMORY_BUFFER);
-#endif
resource->image_id = gl->CreateImageCHROMIUM(
resource->gpu_memory_buffer->AsClientBuffer(), resource->size.width(),
resource->size.height(), GLInternalFormat(resource->format));
« no previous file with comments | « cc/raster/one_copy_raster_buffer_provider.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698