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

Unified Diff: Source/WebKit/chromium/src/WebScopedCompilation.cpp

Issue 13575004: Apply script preprocessor to Web page scripts only. (Closed) Base URL: https://chromium.googlesource.com/external/WebKit_trimmed.git@master
Patch Set: Rebase, simplify Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: Source/WebKit/chromium/src/WebScopedCompilation.cpp
diff --git a/Source/Platform/chromium/public/WebExternalTextureMailbox.h b/Source/WebKit/chromium/src/WebScopedCompilation.cpp
similarity index 76%
copy from Source/Platform/chromium/public/WebExternalTextureMailbox.h
copy to Source/WebKit/chromium/src/WebScopedCompilation.cpp
index 785e9181ae0c05a2448245a4d39e45452a63bd24..e38c4f8e962f44e39f2ef47329ba007d51ebe457 100644
--- a/Source/Platform/chromium/public/WebExternalTextureMailbox.h
+++ b/Source/WebKit/chromium/src/WebScopedCompilation.cpp
@@ -28,22 +28,30 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebExternalTextureMailbox_h
-#define WebExternalTextureMailbox_h
+#include "config.h"
+#include "WebScopedCompilation.h"
+#include "bindings/v8/V8PerContextDebugData.h"
+ #include <v8.h>
+#include <wtf/OwnPtr.h>
namespace WebKit {
-struct WebExternalTextureMailbox {
- signed char name[64];
- unsigned syncPoint;
-
- WebExternalTextureMailbox()
- : syncPoint(0)
+class WebScopedCompilation::Impl : public WebCore::V8PerContextDebugData::SystemScope {
+public:
+ Impl(v8::Handle<v8::Context> context)
+ : SystemScope(context)
{
- memset(name, 0, sizeof(name));
}
};
-} // namespace WebKit
+WebScopedCompilation::WebScopedCompilation(v8::Handle<v8::Context> context)
+{
+ m_impl.reset(new Impl(context));
+}
-#endif // WebExternalTextureMailbox_h
+WebScopedCompilation::~WebScopedCompilation()
+{
+ m_impl.reset(0);
+}
+
+} // namespace WebKit

Powered by Google App Engine
This is Rietveld 408576698