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

Unified Diff: chrome/browser/ui/window_snapshot/window_snapshot_aura.cc

Issue 11399002: Implemented GetWindowSnapshot on RenderViewImpl (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed aura snapshot circular dependency Created 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/window_snapshot/window_snapshot_aura.cc
diff --git a/chrome/browser/ui/window_snapshot/window_snapshot_aura.cc b/chrome/browser/ui/window_snapshot/window_snapshot_aura.cc
index 4ca3b63e0fe2b26d540392fc9d959a6dadf7f731..457d833546d94eb2ef9f25f4af3e780c418d7148 100644
--- a/chrome/browser/ui/window_snapshot/window_snapshot_aura.cc
+++ b/chrome/browser/ui/window_snapshot/window_snapshot_aura.cc
@@ -14,9 +14,8 @@
#include "ui/gfx/rect.h"
namespace chrome {
-namespace internal {
-bool GrabWindowSnapshot(gfx::NativeWindow window,
+bool GrabAuraCompositorSnapshot(aura::Window* window,
std::vector<unsigned char>* png_representation,
const gfx::Rect& snapshot_bounds) {
ui::Compositor* compositor = window->layer()->GetCompositor();
@@ -50,5 +49,4 @@ bool GrabWindowSnapshot(gfx::NativeWindow window,
return true;
}
-} // namespace internal
} // namespace chrome

Powered by Google App Engine
This is Rietveld 408576698