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

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

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.h
diff --git a/content/browser/gpu/gpu_surface_reader_win.h b/content/browser/gpu/gpu_surface_reader_win.h
new file mode 100755
index 0000000000000000000000000000000000000000..b660d6dcff49b481da6b4ce544f11e98a0107734
--- /dev/null
+++ b/content/browser/gpu/gpu_surface_reader_win.h
@@ -0,0 +1,27 @@
+// 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.
+
+#ifndef CONTENT_BROWSER_GPU_GPU_SURFACE_READER_WIN_H_
+#define CONTENT_BROWSER_GPU_GPU_SURFACE_READER_WIN_H_
+
+#include <vector>
+#include "content/browser/gpu/gpu_surface_tracker.h"
+#include "ui/gfx/size.h"
+
+class GpuSurfaceReader {
apatrick_chromium 2012/03/07 20:39:37 Do you envision this class ever having state? I do
mazda 2012/03/08 13:14:28 I thought it might be useful to be able to switch
+ public:
+ GpuSurfaceReader();
+ virtual ~GpuSurfaceReader();
+
+ // Copies the image data of the the given surface to |out|. The image data
+ // is transformed so that it fits in |size|.
+ bool CopySurface(const GpuSurfaceTracker::SurfaceInfo& surface_info,
+ const gfx::Size& size,
+ std::vector<unsigned char>* out);
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(GpuSurfaceReader);
+};
+
+#endif // CONTENT_BROWSER_GPU_GPU_SURFACE_READER_WIN_H_

Powered by Google App Engine
This is Rietveld 408576698