Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 "base/values.h" | 8 #include "base/values.h" |
| 9 #include "cc/output/buffer_to_texture_target_map.h" | |
| 9 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| 10 | 11 |
| 11 namespace content { | 12 namespace content { |
| 12 | 13 |
| 13 // Note: When adding a function here, please make sure the logic is not | 14 // Note: When adding a function here, please make sure the logic is not |
| 14 // duplicated in the renderer. | 15 // duplicated in the renderer. |
| 15 | 16 |
| 16 // Returns true if zero-copy uploads is on (via flags, or platform default). | 17 // Returns true if zero-copy uploads is on (via flags, or platform default). |
| 17 // Only one of one-copy and zero-copy can be enabled at a time. | 18 // Only one of one-copy and zero-copy can be enabled at a time. |
| 18 CONTENT_EXPORT bool IsZeroCopyUploadEnabled(); | 19 CONTENT_EXPORT bool IsZeroCopyUploadEnabled(); |
| (...skipping 20 matching lines...) Expand all Loading... | |
| 39 // Returns true if main thread can be pipelined with activation. | 40 // Returns true if main thread can be pipelined with activation. |
| 40 CONTENT_EXPORT bool IsMainFrameBeforeActivationEnabled(); | 41 CONTENT_EXPORT bool IsMainFrameBeforeActivationEnabled(); |
| 41 | 42 |
| 42 // Returns true if images can be decode asynchronously from rasterization. | 43 // Returns true if images can be decode asynchronously from rasterization. |
| 43 CONTENT_EXPORT bool IsCheckerImagingEnabled(); | 44 CONTENT_EXPORT bool IsCheckerImagingEnabled(); |
| 44 | 45 |
| 45 CONTENT_EXPORT base::DictionaryValue* GetFeatureStatus(); | 46 CONTENT_EXPORT base::DictionaryValue* GetFeatureStatus(); |
| 46 CONTENT_EXPORT base::Value* GetProblems(); | 47 CONTENT_EXPORT base::Value* GetProblems(); |
| 47 CONTENT_EXPORT std::vector<std::string> GetDriverBugWorkarounds(); | 48 CONTENT_EXPORT std::vector<std::string> GetDriverBugWorkarounds(); |
| 48 | 49 |
| 50 // Populate buffer_to_texture_target_map for all buffer usage/formats. | |
| 51 CONTENT_EXPORT cc::BufferToTextureTargetMap GetBufferToTextureTargetMap(); | |
|
reveman
2017/06/09 14:28:46
Can this be "void GetBufferToTextureTargetMap(cc::
sujith
2017/06/14 10:30:18
when i was trying the modifications for
GetBuffer
reveman
2017/06/14 13:03:38
You can remove it from the initialization list or
danakj
2017/06/29 16:06:54
It's a move not a copy, and it would make use of R
| |
| 52 | |
| 49 } // namespace content | 53 } // namespace content |
| 50 | 54 |
| 51 #endif // CONTENT_BROWSER_GPU_COMPOSITOR_UTIL_H_ | 55 #endif // CONTENT_BROWSER_GPU_COMPOSITOR_UTIL_H_ |
| OLD | NEW |