OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "content/browser/gpu/gpu_surface_reader_win.h" | |
6 | |
7 #include "ui/gfx/surface/accelerated_surface_win.h" | |
8 | |
9 | |
10 GpuSurfaceReader::GpuSurfaceReader() { | |
11 } | |
12 | |
13 GpuSurfaceReader::~GpuSurfaceReader() { | |
14 } | |
15 | |
16 bool GpuSurfaceReader::CopySurface( | |
17 const GpuSurfaceTracker::SurfaceInfo& surface_info, | |
18 const gfx::Size& size, | |
19 std::vector<unsigned char>* out) { | |
20 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.
| |
21 return false; | |
22 return surface_info.handle.accelerated_surface->CopyTo(size, out); | |
23 } | |
OLD | NEW |