This source file includes following definitions.
- SetInstance
- GetInstance
#include "content/renderer/android/synchronous_compositor_factory.h"
#include "base/command_line.h"
#include "base/logging.h"
#include "content/public/common/content_switches.h"
namespace content {
namespace {
SynchronousCompositorFactory* g_instance = NULL;
}
void SynchronousCompositorFactory::SetInstance(
SynchronousCompositorFactory* instance) {
DCHECK(g_instance == NULL);
CHECK(CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess));
g_instance = instance;
}
SynchronousCompositorFactory* SynchronousCompositorFactory::GetInstance() {
return g_instance;
}
}