OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "components/bitmap_uploader/bitmap_uploader.h" | 5 #include "components/bitmap_uploader/bitmap_uploader.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/bind.h" | 9 #include "base/bind.h" |
8 #include "base/callback.h" | 10 #include "base/callback.h" |
9 #include "components/mus/public/cpp/window.h" | 11 #include "components/mus/public/cpp/window.h" |
10 #include "components/mus/public/cpp/window_surface.h" | 12 #include "components/mus/public/cpp/window_surface.h" |
11 #include "mojo/application/public/cpp/application_impl.h" | 13 #include "mojo/application/public/cpp/application_impl.h" |
12 #include "mojo/application/public/cpp/connect.h" | 14 #include "mojo/application/public/cpp/connect.h" |
13 #include "mojo/application/public/interfaces/shell.mojom.h" | 15 #include "mojo/application/public/interfaces/shell.mojom.h" |
14 #include "mojo/converters/geometry/geometry_type_converters.h" | 16 #include "mojo/converters/geometry/geometry_type_converters.h" |
15 #include "mojo/converters/surfaces/surfaces_type_converters.h" | 17 #include "mojo/converters/surfaces/surfaces_type_converters.h" |
16 #include "mojo/converters/surfaces/surfaces_utils.h" | 18 #include "mojo/converters/surfaces/surfaces_utils.h" |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 glWaitSyncTokenCHROMIUM( | 255 glWaitSyncTokenCHROMIUM( |
254 resource->sync_token.To<gpu::SyncToken>().GetConstData()); | 256 resource->sync_token.To<gpu::SyncToken>().GetConstData()); |
255 uint32_t texture_id = resource_to_texture_id_map_[resource->id]; | 257 uint32_t texture_id = resource_to_texture_id_map_[resource->id]; |
256 DCHECK_NE(0u, texture_id); | 258 DCHECK_NE(0u, texture_id); |
257 resource_to_texture_id_map_.erase(resource->id); | 259 resource_to_texture_id_map_.erase(resource->id); |
258 glDeleteTextures(1, &texture_id); | 260 glDeleteTextures(1, &texture_id); |
259 } | 261 } |
260 } | 262 } |
261 | 263 |
262 } // namespace bitmap_uploader | 264 } // namespace bitmap_uploader |
OLD | NEW |