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

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

Issue 1808313002: Register surface namespace in BlimpUiContextFactory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Host surface_utils into chrome/public Created 4 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
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/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "content/public/browser/readback_types.h" 10 #include "content/public/browser/readback_types.h"
11 #include "third_party/skia/include/core/SkImageInfo.h" 11 #include "third_party/skia/include/core/SkImageInfo.h"
12 #include "ui/gfx/geometry/size.h" 12 #include "ui/gfx/geometry/size.h"
13 13
14 namespace cc { 14 namespace cc {
15 class CopyOutputResult; 15 class CopyOutputResult;
16 class SurfaceIdAllocator;
17 class SurfaceManager;
18 } // namespace cc 16 } // namespace cc
19 17
20 namespace content { 18 namespace content {
21 19
22 scoped_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator();
23
24 CONTENT_EXPORT
25 cc::SurfaceManager* GetSurfaceManager();
26
27 void CopyFromCompositingSurfaceHasResult( 20 void CopyFromCompositingSurfaceHasResult(
28 const gfx::Size& dst_size_in_pixel, 21 const gfx::Size& dst_size_in_pixel,
29 const SkColorType color_type, 22 const SkColorType color_type,
30 const ReadbackRequestCallback& callback, 23 const ReadbackRequestCallback& callback,
31 scoped_ptr<cc::CopyOutputResult> result); 24 scoped_ptr<cc::CopyOutputResult> result);
32 25
33 } // namespace content 26 } // namespace content
34 27
35 #endif // CONTENT_BROWSER_COMPOSITOR_SURFACE_UTILS_H_ 28 #endif // CONTENT_BROWSER_COMPOSITOR_SURFACE_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698