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

Side by Side Diff: services/ui/demo/bitmap_uploader.cc

Issue 2247023002: services/ui: Move BitmapUploader into mus_demo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rm-software-output-device-mus
Patch Set: Created 4 years, 4 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 unified diff | Download patch
« no previous file with comments | « services/ui/demo/bitmap_uploader.h ('k') | services/ui/demo/mus_demo.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "services/ui/public/cpp/bitmap_uploader.h" 5 #include "services/ui/demo/bitmap_uploader.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "cc/ipc/compositor_frame.mojom.h" 12 #include "cc/ipc/compositor_frame.mojom.h"
13 #include "cc/quads/render_pass.h" 13 #include "cc/quads/render_pass.h"
14 #include "cc/quads/solid_color_draw_quad.h" 14 #include "cc/quads/solid_color_draw_quad.h"
15 #include "cc/quads/texture_draw_quad.h" 15 #include "cc/quads/texture_draw_quad.h"
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 DCHECK_EQ(1, resource.count); 194 DCHECK_EQ(1, resource.count);
195 gl->WaitSyncTokenCHROMIUM(resource.sync_token.GetConstData()); 195 gl->WaitSyncTokenCHROMIUM(resource.sync_token.GetConstData());
196 uint32_t texture_id = resource_to_texture_id_map_[resource.id]; 196 uint32_t texture_id = resource_to_texture_id_map_[resource.id];
197 DCHECK_NE(0u, texture_id); 197 DCHECK_NE(0u, texture_id);
198 resource_to_texture_id_map_.erase(resource.id); 198 resource_to_texture_id_map_.erase(resource.id);
199 gl->DeleteTextures(1, &texture_id); 199 gl->DeleteTextures(1, &texture_id);
200 } 200 }
201 } 201 }
202 202
203 } // namespace ui 203 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/demo/bitmap_uploader.h ('k') | services/ui/demo/mus_demo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698