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

Side by Side Diff: ui/compositor/test/in_process_context_provider.cc

Issue 2493913002: Mus: Move InProcessCommandBuffer and GLInProcessContext to gpu/ipc (Closed)
Patch Set: Fixed casts on windows Created 4 years, 1 month 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 | « ui/compositor/test/DEPS ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "ui/compositor/test/in_process_context_provider.h" 5 #include "ui/compositor/test/in_process_context_provider.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback_helpers.h" 8 #include "base/callback_helpers.h"
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/strings/stringprintf.h" 11 #include "base/strings/stringprintf.h"
12 #include "base/threading/thread_task_runner_handle.h" 12 #include "base/threading/thread_task_runner_handle.h"
13 #include "base/trace_event/trace_event.h" 13 #include "base/trace_event/trace_event.h"
14 #include "cc/output/context_cache_controller.h" 14 #include "cc/output/context_cache_controller.h"
15 #include "cc/output/managed_memory_policy.h" 15 #include "cc/output/managed_memory_policy.h"
16 #include "gpu/command_buffer/client/gl_in_process_context.h"
17 #include "gpu/command_buffer/client/gles2_implementation.h" 16 #include "gpu/command_buffer/client/gles2_implementation.h"
18 #include "gpu/command_buffer/client/gles2_lib.h" 17 #include "gpu/command_buffer/client/gles2_lib.h"
19 #include "gpu/command_buffer/client/shared_memory_limits.h" 18 #include "gpu/command_buffer/client/shared_memory_limits.h"
19 #include "gpu/ipc/gl_in_process_context.h"
20 #include "gpu/skia_bindings/grcontext_for_gles2_interface.h" 20 #include "gpu/skia_bindings/grcontext_for_gles2_interface.h"
21 #include "third_party/skia/include/gpu/GrContext.h" 21 #include "third_party/skia/include/gpu/GrContext.h"
22 #include "third_party/skia/include/gpu/gl/GrGLInterface.h" 22 #include "third_party/skia/include/gpu/gl/GrGLInterface.h"
23 23
24 namespace ui { 24 namespace ui {
25 25
26 // static 26 // static
27 scoped_refptr<InProcessContextProvider> InProcessContextProvider::Create( 27 scoped_refptr<InProcessContextProvider> InProcessContextProvider::Create(
28 const gpu::gles2::ContextCreationAttribHelper& attribs, 28 const gpu::gles2::ContextCreationAttribHelper& attribs,
29 InProcessContextProvider* shared_context, 29 InProcessContextProvider* shared_context,
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 uint32_t InProcessContextProvider::GetCopyTextureInternalFormat() { 165 uint32_t InProcessContextProvider::GetCopyTextureInternalFormat() {
166 if (attribs_.alpha_size > 0) 166 if (attribs_.alpha_size > 0)
167 return GL_RGBA; 167 return GL_RGBA;
168 DCHECK_NE(attribs_.red_size, 0); 168 DCHECK_NE(attribs_.red_size, 0);
169 DCHECK_NE(attribs_.green_size, 0); 169 DCHECK_NE(attribs_.green_size, 0);
170 DCHECK_NE(attribs_.blue_size, 0); 170 DCHECK_NE(attribs_.blue_size, 0);
171 return GL_RGB; 171 return GL_RGB;
172 } 172 }
173 173
174 } // namespace ui 174 } // namespace ui
OLDNEW
« no previous file with comments | « ui/compositor/test/DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698