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

Unified Diff: ui/aura/bench/bench_main.cc

Issue 10808071: Set CaptureClient instance for aura_demo and aura_bench (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Update their DEPS files Created 8 years, 5 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
« no previous file with comments | « ui/aura/bench/DEPS ('k') | ui/aura/demo/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/bench/bench_main.cc
diff --git a/ui/aura/bench/bench_main.cc b/ui/aura/bench/bench_main.cc
index 0430901493db289cdf503829a5ee21c76ed28faa..045a120c016e1f5418e7b4bb4ab20c9ec47c5bc1 100644
--- a/ui/aura/bench/bench_main.cc
+++ b/ui/aura/bench/bench_main.cc
@@ -15,6 +15,7 @@
#include "ui/aura/event.h"
#include "ui/aura/root_window.h"
#include "ui/aura/single_display_manager.h"
+#include "ui/aura/shared/root_window_capture_client.h"
#include "ui/aura/window.h"
#include "ui/base/hit_test.h"
#include "ui/base/resource/resource_bundle.h"
@@ -296,6 +297,9 @@ int main(int argc, char** argv) {
aura::Env::GetInstance()->SetDisplayManager(manager);
scoped_ptr<aura::RootWindow> root_window(
aura::DisplayManager::CreateRootWindowForPrimaryDisplay());
+ aura::client::SetCaptureClient(
+ root_window.get(),
+ new aura::shared::RootWindowCaptureClient(root_window.get()));
// add layers
ColoredLayer background(SK_ColorRED);
« no previous file with comments | « ui/aura/bench/DEPS ('k') | ui/aura/demo/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698