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

Side by Side Diff: content/browser/compositor/surface_utils.h

Issue 1582053002: Implement webview.captureVisibleRegion() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Android compile. Created 4 years, 11 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_COMPOSITOR_SURFACE_UTILS_H_ 5 #ifndef CONTENT_BROWSER_COMPOSITOR_SURFACE_UTILS_H_
6 #define CONTENT_BROWSER_COMPOSITOR_SURFACE_UTILS_H_ 6 #define CONTENT_BROWSER_COMPOSITOR_SURFACE_UTILS_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "content/public/browser/readback_types.h"
10 #include "third_party/skia/include/core/SkImageInfo.h"
11 #include "ui/gfx/geometry/size.h"
12
13 class SkAutoLockPixels;
ncarter (slow) 2016/01/20 21:20:49 Seems unused.
wjmaclean 2016/01/20 21:45:19 Done.
14 class SkBitmap;
ncarter (slow) 2016/01/20 21:20:49 Seems unused.
wjmaclean 2016/01/20 21:45:19 Done.
9 15
10 namespace cc { 16 namespace cc {
17 class CopyOutputResult;
18 class SingleReleaseCallback;
ncarter (slow) 2016/01/20 21:20:49 Seems unused.
wjmaclean 2016/01/20 21:45:19 Done. Thanks for spotting these unused cases!
11 class SurfaceIdAllocator; 19 class SurfaceIdAllocator;
12 class SurfaceManager; 20 class SurfaceManager;
13 } // namespace cc 21 } // namespace cc
14 22
15 namespace content { 23 namespace content {
16 24
17 scoped_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator(); 25 scoped_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator();
18 26
19 cc::SurfaceManager* GetSurfaceManager(); 27 cc::SurfaceManager* GetSurfaceManager();
20 28
29 void CopyFromCompositingSurfaceHasResult(
30 const gfx::Size& dst_size_in_pixel,
31 const SkColorType color_type,
32 const ReadbackRequestCallback& callback,
33 scoped_ptr<cc::CopyOutputResult> result);
34
21 } // namespace content 35 } // namespace content
22 36
23 #endif // CONTENT_BROWSER_COMPOSITOR_SURFACE_UTILS_H_ 37 #endif // CONTENT_BROWSER_COMPOSITOR_SURFACE_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698