Changeset 95368 in webkit


Ignore:
Timestamp:
Sep 16, 2011 10:30:14 PM (13 years ago)
Author:
dslomov@google.com
Message:

https://bugs.webkit.org/show_bug.cgi?id=67733
[Chromium] Separate WebKit initialization and V8 initialization in chromium port.

Reviewed by Darin Fisher.

  • public/WebKit.h:
  • src/WebKit.cpp:

(WebKit::initialize):
(WebKit::initializeWithoutV8):

Location:
trunk/Source/WebKit/chromium
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/chromium/ChangeLog

    r95359 r95368  
     12011-09-16  Dmitry Lomov  <dslomov@google.com>
     2
     3        https://bugs.webkit.org/show_bug.cgi?id=67733
     4        [Chromium] Separate WebKit initialization and V8 initialization in chromium port.
     5
     6        Reviewed by Darin Fisher.
     7
     8        * public/WebKit.h:
     9        * src/WebKit.cpp:
     10        (WebKit::initialize):
     11        (WebKit::initializeWithoutV8):
     12
    1132011-09-16  Vincent Scheib  <scheib@chromium.org>
    214
  • trunk/Source/WebKit/chromium/public/WebKit.h

    r94479 r95368  
    4343WEBKIT_EXPORT void initialize(WebKitPlatformSupport*);
    4444
     45// Must be called on the thread that will be the main WebKit thread before
     46// using any other WebKit APIs. The provided WebKitPlatformSupport; must be
     47// non-null and must remain valid until the current thread calls shutdown.
     48//
     49// This is a special variant of initialize that does not intitialize V8.
     50WEBKIT_EXPORT void initializeWithoutV8(WebKitPlatformSupport*);
     51
    4552// Once shutdown, the WebKitPlatformSupport passed to initialize will no longer
    4653// be accessed. No other WebKit objects should be in use when this function is
  • trunk/Source/WebKit/chromium/src/WebKit.cpp

    r94479 r95368  
    6969void initialize(WebKitPlatformSupport* webKitPlatformSupport)
    7070{
     71    initializeWithoutV8(webKitPlatformSupport);
     72
     73    v8::V8::SetEntropySource(&generateEntropy);
     74    v8::V8::Initialize();
     75    WebCore::V8BindingPerIsolateData::ensureInitialized(v8::Isolate::GetCurrent());
     76}
     77
     78void initializeWithoutV8(WebKitPlatformSupport* webKitPlatformSupport)
     79{
    7180    ASSERT(!s_webKitInitialized);
    7281    s_webKitInitialized = true;
     
    8998    WebCore::UTF8Encoding();
    9099
    91     v8::V8::SetEntropySource(&generateEntropy);
    92     v8::V8::Initialize();
    93     WebCore::V8BindingPerIsolateData::ensureInitialized(v8::Isolate::GetCurrent());
     100 
    94101}
     102
    95103
    96104void shutdown()
Note: See TracChangeset for help on using the changeset viewer.