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

Unified Diff: blimp/client/app/blimp_startup.cc

Issue 2542083004: Make //blimp/client/app a real embedder of //blimp/client/public (Closed)
Patch Set: Fix findbugs issue Created 4 years 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
« no previous file with comments | « blimp/client/app/blimp_startup.h ('k') | blimp/client/app/compositor/browser_compositor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/client/app/blimp_startup.cc
diff --git a/blimp/client/app/blimp_startup.cc b/blimp/client/app/blimp_startup.cc
index da1ec5d3a74144eb717c640604d7f9464e67cc0c..00884ef30bfcaa2e1856a21a968ebf366d12eda5 100644
--- a/blimp/client/app/blimp_startup.cc
+++ b/blimp/client/app/blimp_startup.cc
@@ -13,7 +13,6 @@
#include "base/message_loop/message_loop.h"
#include "base/path_service.h"
#include "blimp/client/app/blimp_discardable_memory_allocator.h"
-#include "blimp/client/core/compositor/decoding_image_generator.h"
#include "third_party/skia/include/core/SkGraphics.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/gl/init/gl_factory.h"
@@ -27,10 +26,6 @@ base::LazyInstance<std::unique_ptr<base::MessageLoopForUI>>
base::LazyInstance<blimp::client::BlimpDiscardableMemoryAllocator>
g_discardable_memory_allocator = LAZY_INSTANCE_INITIALIZER;
-SkImageGenerator* CreateImageGenerator(SkData* data) {
- return blimp::client::DecodingImageGenerator::create(data);
-}
-
} // namespace
namespace blimp {
@@ -43,7 +38,7 @@ void InitializeLogging() {
std::string vmodule_entries =
"blimp_message_pump=1, blimp_connection=1,"
"blimp_compositor=1, blimp_compositor_manager=1,"
- "remote_channel_impl=1, blimp_client_session=1";
+ "remote_channel_impl=1";
base::CommandLine::ForCurrentProcess()->AppendSwitchASCII("vmodule",
vmodule_entries);
}
@@ -77,19 +72,9 @@ bool InitializeMainMessageLoop() {
if (!gl::init::InitializeGLOneOff())
return false;
SkGraphics::Init();
- SkGraphics::SetImageGeneratorFromEncodedFactory(CreateImageGenerator);
g_main_message_loop.Get().reset(new base::MessageLoopForUI);
return true;
}
-void InitializeResourceBundle() {
- // Load the pak file for the shell.
- base::FilePath pak_file;
- bool pak_file_valid = base::PathService::Get(base::DIR_MODULE, &pak_file);
- CHECK(pak_file_valid);
- pak_file = pak_file.Append(FILE_PATH_LITERAL("blimp_shell.pak"));
- ui::ResourceBundle::InitSharedInstanceWithPakPath(pak_file);
-}
-
} // namespace client
} // namespace blimp
« no previous file with comments | « blimp/client/app/blimp_startup.h ('k') | blimp/client/app/compositor/browser_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698