| 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 "services/ui/demo/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 "base/threading/thread_task_runner_handle.h" | 12 #include "base/threading/thread_task_runner_handle.h" |
| 13 #include "cc/ipc/compositor_frame.mojom.h" | 13 #include "cc/ipc/compositor_frame.mojom.h" |
| 14 #include "cc/quads/render_pass.h" | 14 #include "cc/quads/render_pass.h" |
| 15 #include "cc/quads/solid_color_draw_quad.h" | 15 #include "cc/quads/solid_color_draw_quad.h" |
| 16 #include "cc/quads/texture_draw_quad.h" | 16 #include "cc/quads/texture_draw_quad.h" |
| 17 #include "services/ui/public/cpp/context_provider.h" | 17 #include "services/ui/public/cpp/context_provider.h" |
| 18 #include "services/ui/public/cpp/gles2_context.h" | 18 #include "services/ui/public/cpp/gles2_context.h" |
| 19 #include "services/ui/public/cpp/gpu_service.h" | 19 #include "services/ui/public/cpp/gpu/gpu_service.h" |
| 20 #include "services/ui/public/cpp/window.h" | 20 #include "services/ui/public/cpp/window.h" |
| 21 | 21 |
| 22 namespace ui { | 22 namespace ui { |
| 23 namespace { | 23 namespace { |
| 24 | 24 |
| 25 const uint32_t g_transparent_color = 0x00000000; | 25 const uint32_t g_transparent_color = 0x00000000; |
| 26 | 26 |
| 27 } // namespace | 27 } // namespace |
| 28 | 28 |
| 29 const char kBitmapUploaderForAcceleratedWidget[] = | 29 const char kBitmapUploaderForAcceleratedWidget[] = |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 // TODO(fsamuel): Implement this. | 235 // TODO(fsamuel): Implement this. |
| 236 } | 236 } |
| 237 | 237 |
| 238 void BitmapUploader::SetExternalTilePriorityConstraints( | 238 void BitmapUploader::SetExternalTilePriorityConstraints( |
| 239 const gfx::Rect& viewport_rect, | 239 const gfx::Rect& viewport_rect, |
| 240 const gfx::Transform& transform) { | 240 const gfx::Transform& transform) { |
| 241 // TODO(fsamuel): Implement this. | 241 // TODO(fsamuel): Implement this. |
| 242 } | 242 } |
| 243 | 243 |
| 244 } // namespace ui | 244 } // namespace ui |
| OLD | NEW |