Chromium Code Reviews| 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_ |