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

Side by Side Diff: components/bitmap_uploader/bitmap_uploader.cc

Issue 2119963002: Move mus to //services/ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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 | « components/bitmap_uploader/bitmap_uploader.h ('k') | components/mus/BUILD.gn » ('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 "components/bitmap_uploader/bitmap_uploader.h" 5 #include "components/bitmap_uploader/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"
16 #include "components/mus/public/cpp/gles2_context.h" 16 #include "services/ui/public/cpp/gles2_context.h"
17 #include "components/mus/public/cpp/window.h" 17 #include "services/ui/public/cpp/window.h"
18 #include "components/mus/public/cpp/window_surface.h" 18 #include "services/ui/public/cpp/window_surface.h"
19 19
20 namespace bitmap_uploader { 20 namespace bitmap_uploader {
21 namespace { 21 namespace {
22 22
23 const uint32_t g_transparent_color = 0x00000000; 23 const uint32_t g_transparent_color = 0x00000000;
24 24
25 } // namespace 25 } // namespace
26 26
27 const char kBitmapUploaderForAcceleratedWidget[] = 27 const char kBitmapUploaderForAcceleratedWidget[] =
28 "__BITMAP_UPLOADER_ACCELERATED_WIDGET__"; 28 "__BITMAP_UPLOADER_ACCELERATED_WIDGET__";
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 DCHECK_EQ(1, resource.count); 201 DCHECK_EQ(1, resource.count);
202 gl->WaitSyncTokenCHROMIUM(resource.sync_token.GetConstData()); 202 gl->WaitSyncTokenCHROMIUM(resource.sync_token.GetConstData());
203 uint32_t texture_id = resource_to_texture_id_map_[resource.id]; 203 uint32_t texture_id = resource_to_texture_id_map_[resource.id];
204 DCHECK_NE(0u, texture_id); 204 DCHECK_NE(0u, texture_id);
205 resource_to_texture_id_map_.erase(resource.id); 205 resource_to_texture_id_map_.erase(resource.id);
206 gl->DeleteTextures(1, &texture_id); 206 gl->DeleteTextures(1, &texture_id);
207 } 207 }
208 } 208 }
209 209
210 } // namespace bitmap_uploader 210 } // namespace bitmap_uploader
OLDNEW
« no previous file with comments | « components/bitmap_uploader/bitmap_uploader.h ('k') | components/mus/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698