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

Unified Diff: blimp/client/compositor/blimp_context_provider.cc

Issue 1570943002: [Blimp client] Move client code into blimp::client namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: blimp/client/compositor/blimp_context_provider.cc
diff --git a/blimp/client/compositor/blimp_context_provider.cc b/blimp/client/compositor/blimp_context_provider.cc
index 35c8444bb6f6eafa3e9e85783d32d80ad3e99cfe..3e032e9a4f4ae7080f1efe845292bad7e85d22bc 100644
--- a/blimp/client/compositor/blimp_context_provider.cc
+++ b/blimp/client/compositor/blimp_context_provider.cc
@@ -14,6 +14,8 @@
#include "third_party/skia/include/gpu/GrContext.h"
#include "third_party/skia/include/gpu/gl/GrGLInterface.h"
+namespace blimp {
+namespace client {
namespace {
// Singleton used to initialize and terminate the gles2 library.
@@ -31,16 +33,14 @@ base::LazyInstance<GLES2Initializer> g_gles2_initializer =
LAZY_INSTANCE_INITIALIZER;
static void BindGrContextCallback(const GrGLInterface* interface) {
- blimp::BlimpContextProvider* context_provider =
- reinterpret_cast<blimp::BlimpContextProvider*>(interface->fCallbackData);
+ BlimpContextProvider* context_provider =
+ reinterpret_cast<BlimpContextProvider*>(interface->fCallbackData);
gles2::SetGLContext(context_provider->ContextGL());
}
} // namespace
-namespace blimp {
-
// static
scoped_refptr<BlimpContextProvider> BlimpContextProvider::Create(
gfx::AcceleratedWidget widget) {
@@ -160,4 +160,5 @@ void BlimpContextProvider::OnLostContext() {
gr_context_->abandonContext();
}
+} // namespace client
} // namespace blimp
« no previous file with comments | « blimp/client/compositor/blimp_context_provider.h ('k') | blimp/client/compositor/blimp_layer_tree_settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698