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

Side by Side Diff: content/browser/gpu/compositor_util.h

Issue 2895273002: Unified the use of BufferToTextureTargetMap for all the Processes (Closed)
Patch Set: nit taken care Created 3 years, 5 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_GPU_COMPOSITOR_UTIL_H_ 5 #ifndef CONTENT_BROWSER_GPU_COMPOSITOR_UTIL_H_
6 #define CONTENT_BROWSER_GPU_COMPOSITOR_UTIL_H_ 6 #define CONTENT_BROWSER_GPU_COMPOSITOR_UTIL_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/values.h" 10 #include "base/values.h"
11 #include "cc/output/buffer_to_texture_target_map.h"
11 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
12 13
13 namespace content { 14 namespace content {
14 15
15 // Note: When adding a function here, please make sure the logic is not 16 // Note: When adding a function here, please make sure the logic is not
16 // duplicated in the renderer. 17 // duplicated in the renderer.
17 18
18 // Returns true if zero-copy uploads is on (via flags, or platform default). 19 // Returns true if zero-copy uploads is on (via flags, or platform default).
19 // Only one of one-copy and zero-copy can be enabled at a time. 20 // Only one of one-copy and zero-copy can be enabled at a time.
20 CONTENT_EXPORT bool IsZeroCopyUploadEnabled(); 21 CONTENT_EXPORT bool IsZeroCopyUploadEnabled();
(...skipping 20 matching lines...) Expand all
41 // Returns true if main thread can be pipelined with activation. 42 // Returns true if main thread can be pipelined with activation.
42 CONTENT_EXPORT bool IsMainFrameBeforeActivationEnabled(); 43 CONTENT_EXPORT bool IsMainFrameBeforeActivationEnabled();
43 44
44 // Returns true if images can be decode asynchronously from rasterization. 45 // Returns true if images can be decode asynchronously from rasterization.
45 CONTENT_EXPORT bool IsCheckerImagingEnabled(); 46 CONTENT_EXPORT bool IsCheckerImagingEnabled();
46 47
47 CONTENT_EXPORT std::unique_ptr<base::DictionaryValue> GetFeatureStatus(); 48 CONTENT_EXPORT std::unique_ptr<base::DictionaryValue> GetFeatureStatus();
48 CONTENT_EXPORT std::unique_ptr<base::ListValue> GetProblems(); 49 CONTENT_EXPORT std::unique_ptr<base::ListValue> GetProblems();
49 CONTENT_EXPORT std::vector<std::string> GetDriverBugWorkarounds(); 50 CONTENT_EXPORT std::vector<std::string> GetDriverBugWorkarounds();
50 51
52 // Populate BufferToTextureTargetMap for all buffer usage/formats.
53 CONTENT_EXPORT cc::BufferToTextureTargetMap CreateBufferToTextureTargetMap();
54
51 } // namespace content 55 } // namespace content
52 56
53 #endif // CONTENT_BROWSER_GPU_COMPOSITOR_UTIL_H_ 57 #endif // CONTENT_BROWSER_GPU_COMPOSITOR_UTIL_H_
OLDNEW
« no previous file with comments | « content/browser/compositor/gpu_process_transport_factory.cc ('k') | content/browser/gpu/compositor_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698