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

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

Issue 2684933003: Move frame_sink_id management to framesink_manager.cc/h from (Closed)
Patch Set: Created 3 years, 10 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 <memory> 8 #include <memory>
9 9
10 #include "cc/surfaces/frame_sink_id.h" 10 #include "cc/surfaces/frame_sink_id.h"
11 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
12 #include "content/public/browser/readback_types.h" 12 #include "content/public/browser/readback_types.h"
13 #include "third_party/skia/include/core/SkImageInfo.h" 13 #include "third_party/skia/include/core/SkImageInfo.h"
14 #include "ui/gfx/geometry/size.h" 14 #include "ui/gfx/geometry/size.h"
15 15
16 namespace cc { 16 namespace cc {
17 class CopyOutputResult; 17 class CopyOutputResult;
18 class FrameSinkManager;
18 class SurfaceManager; 19 class SurfaceManager;
19 } // namespace cc 20 } // namespace cc
20 21
21 namespace content { 22 namespace content {
22 23
23 CONTENT_EXPORT cc::FrameSinkId AllocateFrameSinkId(); 24 CONTENT_EXPORT cc::FrameSinkId AllocateFrameSinkId();
24 25
25 CONTENT_EXPORT cc::SurfaceManager* GetSurfaceManager(); 26 CONTENT_EXPORT cc::SurfaceManager* GetSurfaceManager();
27 CONTENT_EXPORT cc::FrameSinkManager* GetFrameSinkManager();
28
26 29
27 void CopyFromCompositingSurfaceHasResult( 30 void CopyFromCompositingSurfaceHasResult(
28 const gfx::Size& dst_size_in_pixel, 31 const gfx::Size& dst_size_in_pixel,
29 const SkColorType color_type, 32 const SkColorType color_type,
30 const ReadbackRequestCallback& callback, 33 const ReadbackRequestCallback& callback,
31 std::unique_ptr<cc::CopyOutputResult> result); 34 std::unique_ptr<cc::CopyOutputResult> result);
32 35
33 } // namespace content 36 } // namespace content
34 37
35 #endif // CONTENT_BROWSER_COMPOSITOR_SURFACE_UTILS_H_ 38 #endif // CONTENT_BROWSER_COMPOSITOR_SURFACE_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698