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

Side by Side Diff: content/browser/gpu/gpu_surface_reader_win.cc

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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698