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

Unified Diff: content/browser/gpu/gpu_surface_reader_win.cc

Issue 9582003: Support browser side thumbnailing for GPU composited pages on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 8 years, 9 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: content/browser/gpu/gpu_surface_reader_win.cc
diff --git a/content/browser/gpu/gpu_surface_reader_win.cc b/content/browser/gpu/gpu_surface_reader_win.cc
new file mode 100755
index 0000000000000000000000000000000000000000..ae8ebd6e87f80f50ebe073ce0d9db5f9c66743b5
--- /dev/null
+++ b/content/browser/gpu/gpu_surface_reader_win.cc
@@ -0,0 +1,23 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/browser/gpu/gpu_surface_reader_win.h"
+
+#include "ui/gfx/surface/accelerated_surface_win.h"
+
+
+GpuSurfaceReader::GpuSurfaceReader() {
+}
+
+GpuSurfaceReader::~GpuSurfaceReader() {
+}
+
+bool GpuSurfaceReader::CopySurface(
+ const GpuSurfaceTracker::SurfaceInfo& surface_info,
+ const gfx::Size& size,
+ std::vector<unsigned char>* out) {
+ if (!surface_info.handle.accelerated_surface)
apatrick_chromium 2012/03/07 20:39:37 Alternatively, given how simple it is, why not jus
mazda 2012/03/08 13:14:28 Moved the code to RenderWidgetHostViewWin.
+ return false;
+ return surface_info.handle.accelerated_surface->CopyTo(size, out);
+}

Powered by Google App Engine
This is Rietveld 408576698