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

Unified Diff: cc/raster/one_copy_raster_buffer_provider.cc

Issue 2639973002: Add target argument to Copy{Sub}TextureCHROMIUM entry point (Closed)
Patch Set: autogen code Created 3 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 | « no previous file | cc/resources/video_resource_updater.cc » ('j') | gpu/command_buffer/cmd_buffer_functions.txt » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/raster/one_copy_raster_buffer_provider.cc
diff --git a/cc/raster/one_copy_raster_buffer_provider.cc b/cc/raster/one_copy_raster_buffer_provider.cc
index 391a8f2b105ecc6a6665f8cebf163a5a1aa95089..74f9d69e2385281fefc7b17656ef002d3d3ca9ba 100644
--- a/cc/raster/one_copy_raster_buffer_provider.cc
+++ b/cc/raster/one_copy_raster_buffer_provider.cc
@@ -350,9 +350,10 @@ void OneCopyRasterBufferProvider::CopyOnWorkerThread(
int rows_to_copy = std::min(chunk_size_in_rows, height - y);
DCHECK_GT(rows_to_copy, 0);
- gl->CopySubTextureCHROMIUM(
- staging_buffer->texture_id, 0, resource_texture_id, 0, 0, y, 0, y,
- resource_lock->size().width(), rows_to_copy, false, false, false);
+ gl->CopySubTextureCHROMIUM(GL_TEXTURE_2D, staging_buffer->texture_id, 0,
+ resource_texture_id, 0, 0, y, 0, y,
+ resource_lock->size().width(), rows_to_copy,
+ false, false, false);
y += rows_to_copy;
// Increment |bytes_scheduled_since_last_flush_| by the amount of memory
« no previous file with comments | « no previous file | cc/resources/video_resource_updater.cc » ('j') | gpu/command_buffer/cmd_buffer_functions.txt » ('J')

Powered by Google App Engine
This is Rietveld 408576698