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

Side by Side Diff: ui/gfx/compositor/compositor_test_support.cc

Issue 8360018: Revert 106606 - Use WebKit compositor in ui::Layer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « ui/gfx/compositor/compositor_test_support.h ('k') | ui/gfx/compositor/layer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "ui/gfx/compositor/compositor_test_support.h"
6
7 #if defined(USE_WEBKIT_COMPOSITOR)
8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h"
9 #include "webkit/glue/webkitplatformsupport_impl.h"
10 #endif
11
12 namespace ui {
13
14 #if defined(USE_WEBKIT_COMPOSITOR)
15 static webkit_glue::WebKitPlatformSupportImpl* g_webkit_support;
16 #endif
17
18 void CompositorTestSupport::Initialize() {
19 #if defined(USE_WEBKIT_COMPOSITOR)
20 DCHECK(!g_webkit_support);
21 g_webkit_support = new webkit_glue::WebKitPlatformSupportImpl;
22 WebKit::initialize(g_webkit_support);
23 #endif
24 }
25
26 void CompositorTestSupport::Terminate() {
27 #if defined(USE_WEBKIT_COMPOSITOR)
28 DCHECK(g_webkit_support);
29 WebKit::shutdown();
30 delete g_webkit_support;
31 g_webkit_support = NULL;
32 #endif
33 }
34
35 } // namespace ui
OLDNEW
« no previous file with comments | « ui/gfx/compositor/compositor_test_support.h ('k') | ui/gfx/compositor/layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698