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

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

Issue 2079623002: Create only one ContextFactory in content unit tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add dcheck Created 4 years, 6 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
« no previous file with comments | « no previous file | content/browser/frame_host/navigator_impl_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "content/common/content_export.h" 10 #include "content/common/content_export.h"
11 #include "content/public/browser/readback_types.h" 11 #include "content/public/browser/readback_types.h"
12 #include "third_party/skia/include/core/SkImageInfo.h" 12 #include "third_party/skia/include/core/SkImageInfo.h"
13 #include "ui/gfx/geometry/size.h" 13 #include "ui/gfx/geometry/size.h"
14 14
15 namespace cc { 15 namespace cc {
16 class CopyOutputResult; 16 class CopyOutputResult;
17 class SurfaceIdAllocator; 17 class SurfaceIdAllocator;
18 class SurfaceManager; 18 class SurfaceManager;
19 } // namespace cc 19 } // namespace cc
20 20
21 namespace content { 21 namespace content {
22 22
23 CONTENT_EXPORT
23 std::unique_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator(); 24 std::unique_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator();
24 25
25 CONTENT_EXPORT 26 CONTENT_EXPORT
26 cc::SurfaceManager* GetSurfaceManager(); 27 cc::SurfaceManager* GetSurfaceManager();
27 28
28 void CopyFromCompositingSurfaceHasResult( 29 void CopyFromCompositingSurfaceHasResult(
29 const gfx::Size& dst_size_in_pixel, 30 const gfx::Size& dst_size_in_pixel,
30 const SkColorType color_type, 31 const SkColorType color_type,
31 const ReadbackRequestCallback& callback, 32 const ReadbackRequestCallback& callback,
32 std::unique_ptr<cc::CopyOutputResult> result); 33 std::unique_ptr<cc::CopyOutputResult> result);
33 34
34 } // namespace content 35 } // namespace content
35 36
36 #endif // CONTENT_BROWSER_COMPOSITOR_SURFACE_UTILS_H_ 37 #endif // CONTENT_BROWSER_COMPOSITOR_SURFACE_UTILS_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/frame_host/navigator_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698