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

Side by Side Diff: components/mus/public/cpp/context_provider.h

Issue 1410053006: Move third_party/mojo/src/mojo/public to mojo/public (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 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 | « components/mus/public/cpp/BUILD.gn ('k') | components/mus/public/cpp/lib/context_provider.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef COMPONENTS_MUS_PUBLIC_CPP_CONTEXT_PROVIDER_H_ 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_CONTEXT_PROVIDER_H_
6 #define COMPONENTS_MUS_PUBLIC_CPP_CONTEXT_PROVIDER_H_ 6 #define COMPONENTS_MUS_PUBLIC_CPP_CONTEXT_PROVIDER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/synchronization/lock.h" 10 #include "base/synchronization/lock.h"
11 #include "cc/output/context_provider.h" 11 #include "cc/output/context_provider.h"
12 #include "third_party/mojo/src/mojo/public/c/gles2/gles2_types.h" 12 #include "mojo/public/c/gles2/gles2_types.h"
13 #include "third_party/mojo/src/mojo/public/cpp/system/core.h" 13 #include "mojo/public/cpp/system/core.h"
14 14
15 namespace mus { 15 namespace mus {
16 16
17 class ContextProvider : public cc::ContextProvider { 17 class ContextProvider : public cc::ContextProvider {
18 public: 18 public:
19 explicit ContextProvider(mojo::ScopedMessagePipeHandle command_buffer_handle); 19 explicit ContextProvider(mojo::ScopedMessagePipeHandle command_buffer_handle);
20 20
21 // cc::ContextProvider implementation. 21 // cc::ContextProvider implementation.
22 bool BindToCurrentThread() override; 22 bool BindToCurrentThread() override;
23 gpu::gles2::GLES2Interface* ContextGL() override; 23 gpu::gles2::GLES2Interface* ContextGL() override;
(...skipping 23 matching lines...) Expand all
47 scoped_ptr<gpu::gles2::GLES2Interface> context_gl_; 47 scoped_ptr<gpu::gles2::GLES2Interface> context_gl_;
48 48
49 base::Lock context_lock_; 49 base::Lock context_lock_;
50 50
51 DISALLOW_COPY_AND_ASSIGN(ContextProvider); 51 DISALLOW_COPY_AND_ASSIGN(ContextProvider);
52 }; 52 };
53 53
54 } // namespace mus 54 } // namespace mus
55 55
56 #endif // COMPONENTS_MUS_PUBLIC_CPP_CONTEXT_PROVIDER_H_ 56 #endif // COMPONENTS_MUS_PUBLIC_CPP_CONTEXT_PROVIDER_H_
OLDNEW
« no previous file with comments | « components/mus/public/cpp/BUILD.gn ('k') | components/mus/public/cpp/lib/context_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698