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 #ifndef CONTENT_BROWSER_GPU_GPU_SURFACE_READER_WIN_H_ | |
6 #define CONTENT_BROWSER_GPU_GPU_SURFACE_READER_WIN_H_ | |
7 | |
8 #include <vector> | |
9 #include "content/browser/gpu/gpu_surface_tracker.h" | |
10 #include "ui/gfx/size.h" | |
11 | |
12 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
| |
13 public: | |
14 GpuSurfaceReader(); | |
15 virtual ~GpuSurfaceReader(); | |
16 | |
17 // Copies the image data of the the given surface to |out|. The image data | |
18 // is transformed so that it fits in |size|. | |
19 bool CopySurface(const GpuSurfaceTracker::SurfaceInfo& surface_info, | |
20 const gfx::Size& size, | |
21 std::vector<unsigned char>* out); | |
22 | |
23 private: | |
24 DISALLOW_COPY_AND_ASSIGN(GpuSurfaceReader); | |
25 }; | |
26 | |
27 #endif // CONTENT_BROWSER_GPU_GPU_SURFACE_READER_WIN_H_ | |
OLD | NEW |