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); |
+} |