mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Move TextLayoutManager constructor to Cpp file
Summary: Move TextLayoutManager constructor to Cpp file changelog: [internal] internal Reviewed By: genkikondo Differential Revision: D34246014 fbshipit-source-id: a85e144b05e2cefad8cb1757dad14bedacbb8d74
This commit is contained in:
1 parent
3fb3ce4fa2
commit
be9cf17316
2 files changed
+11
-8
No files matched your search
+10
@@ -20,6 +20,16 @@ using namespace facebook::jni;
|
||||
namespace facebook {
|
||||
namespace react {
|
||||
|
||||
TextLayoutManager::TextLayoutManager(
|
||||
const ContextContainer::Shared &contextContainer)
|
||||
: contextContainer_(contextContainer),
|
||||
mapBufferSerializationEnabled_(
|
||||
contextContainer->at<bool>("MapBufferSerializationEnabled")),
|
||||
measureCache_(
|
||||
contextContainer->at<bool>("EnableLargeTextMeasureCache")
|
||||
? 1024
|
||||
: kSimpleThreadSafeCacheSizeCap) {}
|
||||
|
||||
void *TextLayoutManager::getNativeTextLayoutManager() const {
|
||||
return self_;
|
||||
}
|
||||
|
||||
+1
-8
@@ -26,14 +26,7 @@ using SharedTextLayoutManager = std::shared_ptr<const TextLayoutManager>;
|
||||
*/
|
||||
class TextLayoutManager {
|
||||
public:
|
||||
TextLayoutManager(const ContextContainer::Shared &contextContainer)
|
||||
: contextContainer_(contextContainer),
|
||||
mapBufferSerializationEnabled_(
|
||||
contextContainer->at<bool>("MapBufferSerializationEnabled")),
|
||||
measureCache_(
|
||||
contextContainer->at<bool>("EnableLargeTextMeasureCache")
|
||||
? 1024
|
||||
: kSimpleThreadSafeCacheSizeCap) {}
|
||||
TextLayoutManager(const ContextContainer::Shared &contextContainer);
|
||||
|
||||
/*
|
||||
* Not copyable.
|
||||
|
||||
Reference in new issue
Block a user