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

Unified Diff: components/bitmap_uploader/bitmap_uploader.cc

Issue 2019833002: Implement StructTraits for various cc and gpu types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mailbox_name by ref to make windows happy Created 4 years, 7 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: components/bitmap_uploader/bitmap_uploader.cc
diff --git a/components/bitmap_uploader/bitmap_uploader.cc b/components/bitmap_uploader/bitmap_uploader.cc
index 5e10e305f5370460e4c0f2e4456ec24d2c722de1..68b8e5d8663136efae39dbe367bc18fc534bb1da 100644
--- a/components/bitmap_uploader/bitmap_uploader.cc
+++ b/components/bitmap_uploader/bitmap_uploader.cc
@@ -211,16 +211,16 @@ void BitmapUploader::SetIdNamespace(uint32_t id_namespace) {
void BitmapUploader::OnResourcesReturned(
mus::WindowSurface* surface,
- mojo::Array<mus::mojom::ReturnedResourcePtr> resources) {
+ mojo::Array<cc::ReturnedResource> resources) {
gpu::gles2::GLES2Interface* gl = gles2_context_->interface();
// TODO(jamesr): Recycle.
for (size_t i = 0; i < resources.size(); ++i) {
- mus::mojom::ReturnedResourcePtr resource = std::move(resources[i]);
- DCHECK_EQ(1, resource->count);
- gl->WaitSyncTokenCHROMIUM(resource->sync_token.GetConstData());
- uint32_t texture_id = resource_to_texture_id_map_[resource->id];
+ cc::ReturnedResource resource = std::move(resources[i]);
+ DCHECK_EQ(1, resource.count);
+ gl->WaitSyncTokenCHROMIUM(resource.sync_token.GetConstData());
+ uint32_t texture_id = resource_to_texture_id_map_[resource.id];
DCHECK_NE(0u, texture_id);
- resource_to_texture_id_map_.erase(resource->id);
+ resource_to_texture_id_map_.erase(resource.id);
gl->DeleteTextures(1, &texture_id);
}
}
« no previous file with comments | « components/bitmap_uploader/bitmap_uploader.h ('k') | components/mus/gpu/display_compositor/compositor_frame_sink_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698