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

Side by Side Diff: third_party/WebKit/Source/web/WebViewImpl.cpp

Issue 1956893003: compositor-worker: Add CompositorProxyClient worker client of CompositorWorker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Plumb createCompositorProxyClient through WebFrameWidget. Created 4 years, 7 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 15 matching lines...) Expand all
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #include "web/WebViewImpl.h" 31 #include "web/WebViewImpl.h"
32 32
33 #include "core/CSSValueKeywords.h" 33 #include "core/CSSValueKeywords.h"
34 #include "core/HTMLNames.h" 34 #include "core/HTMLNames.h"
35 #include "core/InputTypeNames.h" 35 #include "core/InputTypeNames.h"
36 #include "core/animation/CustomCompositorAnimationManager.h"
36 #include "core/clipboard/DataObject.h" 37 #include "core/clipboard/DataObject.h"
37 #include "core/dom/Document.h" 38 #include "core/dom/Document.h"
38 #include "core/dom/Fullscreen.h" 39 #include "core/dom/Fullscreen.h"
39 #include "core/dom/LayoutTreeBuilderTraversal.h" 40 #include "core/dom/LayoutTreeBuilderTraversal.h"
40 #include "core/dom/Text.h" 41 #include "core/dom/Text.h"
41 #include "core/editing/EditingUtilities.h" 42 #include "core/editing/EditingUtilities.h"
42 #include "core/editing/Editor.h" 43 #include "core/editing/Editor.h"
43 #include "core/editing/FrameSelection.h" 44 #include "core/editing/FrameSelection.h"
44 #include "core/editing/InputMethodController.h" 45 #include "core/editing/InputMethodController.h"
45 #include "core/editing/iterators/TextIterator.h" 46 #include "core/editing/iterators/TextIterator.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 #include "platform/ContextMenu.h" 100 #include "platform/ContextMenu.h"
100 #include "platform/ContextMenuItem.h" 101 #include "platform/ContextMenuItem.h"
101 #include "platform/Cursor.h" 102 #include "platform/Cursor.h"
102 #include "platform/Histogram.h" 103 #include "platform/Histogram.h"
103 #include "platform/KeyboardCodes.h" 104 #include "platform/KeyboardCodes.h"
104 #include "platform/Logging.h" 105 #include "platform/Logging.h"
105 #include "platform/PlatformGestureEvent.h" 106 #include "platform/PlatformGestureEvent.h"
106 #include "platform/PlatformKeyboardEvent.h" 107 #include "platform/PlatformKeyboardEvent.h"
107 #include "platform/PlatformMouseEvent.h" 108 #include "platform/PlatformMouseEvent.h"
108 #include "platform/RuntimeEnabledFeatures.h" 109 #include "platform/RuntimeEnabledFeatures.h"
110 #include "platform/ThreadSafeFunctional.h"
109 #include "platform/TraceEvent.h" 111 #include "platform/TraceEvent.h"
110 #include "platform/UserGestureIndicator.h" 112 #include "platform/UserGestureIndicator.h"
113 #include "platform/WaitableEvent.h"
dcheng 2016/05/20 23:57:47 There's a bunch of includes that don't look strict
flackr 2016/05/25 17:47:40 Thanks for noticing, these were accidentally pulle
111 #include "platform/exported/WebActiveGestureAnimation.h" 114 #include "platform/exported/WebActiveGestureAnimation.h"
112 #include "platform/fonts/FontCache.h" 115 #include "platform/fonts/FontCache.h"
113 #include "platform/graphics/Color.h" 116 #include "platform/graphics/Color.h"
114 #include "platform/graphics/CompositorFactory.h" 117 #include "platform/graphics/CompositorFactory.h"
118 #include "platform/graphics/CompositorMutatorClient.h"
115 #include "platform/graphics/FirstPaintInvalidationTracking.h" 119 #include "platform/graphics/FirstPaintInvalidationTracking.h"
116 #include "platform/graphics/GraphicsContext.h" 120 #include "platform/graphics/GraphicsContext.h"
117 #include "platform/graphics/Image.h" 121 #include "platform/graphics/Image.h"
118 #include "platform/graphics/ImageBuffer.h" 122 #include "platform/graphics/ImageBuffer.h"
119 #include "platform/graphics/gpu/DrawingBuffer.h" 123 #include "platform/graphics/gpu/DrawingBuffer.h"
120 #include "platform/graphics/paint/DrawingRecorder.h" 124 #include "platform/graphics/paint/DrawingRecorder.h"
121 #include "platform/scroll/ScrollbarTheme.h" 125 #include "platform/scroll/ScrollbarTheme.h"
122 #include "platform/weborigin/SchemeRegistry.h" 126 #include "platform/weborigin/SchemeRegistry.h"
123 #include "public/platform/Platform.h" 127 #include "public/platform/Platform.h"
124 #include "public/platform/WebCompositeAndReadbackAsyncCallback.h" 128 #include "public/platform/WebCompositeAndReadbackAsyncCallback.h"
(...skipping 19 matching lines...) Expand all
144 #include "public/web/WebMediaPlayerAction.h" 148 #include "public/web/WebMediaPlayerAction.h"
145 #include "public/web/WebNode.h" 149 #include "public/web/WebNode.h"
146 #include "public/web/WebPlugin.h" 150 #include "public/web/WebPlugin.h"
147 #include "public/web/WebPluginAction.h" 151 #include "public/web/WebPluginAction.h"
148 #include "public/web/WebRange.h" 152 #include "public/web/WebRange.h"
149 #include "public/web/WebSelection.h" 153 #include "public/web/WebSelection.h"
150 #include "public/web/WebTextInputInfo.h" 154 #include "public/web/WebTextInputInfo.h"
151 #include "public/web/WebViewClient.h" 155 #include "public/web/WebViewClient.h"
152 #include "public/web/WebWindowFeatures.h" 156 #include "public/web/WebWindowFeatures.h"
153 #include "web/CompositionUnderlineVectorBuilder.h" 157 #include "web/CompositionUnderlineVectorBuilder.h"
158 #include "web/CompositorProxyClientImpl.h"
154 #include "web/ContextFeaturesClientImpl.h" 159 #include "web/ContextFeaturesClientImpl.h"
155 #include "web/ContextMenuAllowedScope.h" 160 #include "web/ContextMenuAllowedScope.h"
156 #include "web/DatabaseClientImpl.h" 161 #include "web/DatabaseClientImpl.h"
157 #include "web/DedicatedWorkerGlobalScopeProxyProviderImpl.h" 162 #include "web/DedicatedWorkerGlobalScopeProxyProviderImpl.h"
158 #include "web/DevToolsEmulator.h" 163 #include "web/DevToolsEmulator.h"
159 #include "web/FullscreenController.h" 164 #include "web/FullscreenController.h"
160 #include "web/InspectorOverlay.h" 165 #include "web/InspectorOverlay.h"
161 #include "web/LinkHighlightImpl.h" 166 #include "web/LinkHighlightImpl.h"
162 #include "web/PageOverlay.h" 167 #include "web/PageOverlay.h"
163 #include "web/PrerendererClientImpl.h" 168 #include "web/PrerendererClientImpl.h"
(...skipping 4308 matching lines...) Expand 10 before | Expand all | Expand 10 after
4472 void WebViewImpl::forceNextWebGLContextCreationToFail() 4477 void WebViewImpl::forceNextWebGLContextCreationToFail()
4473 { 4478 {
4474 WebGLRenderingContext::forceNextWebGLContextCreationToFail(); 4479 WebGLRenderingContext::forceNextWebGLContextCreationToFail();
4475 } 4480 }
4476 4481
4477 void WebViewImpl::forceNextDrawingBufferCreationToFail() 4482 void WebViewImpl::forceNextDrawingBufferCreationToFail()
4478 { 4483 {
4479 DrawingBuffer::forceNextDrawingBufferCreationToFail(); 4484 DrawingBuffer::forceNextDrawingBufferCreationToFail();
4480 } 4485 }
4481 4486
4487 CompositorProxyClient* WebViewImpl::createCompositorProxyClient()
4488 {
4489 return new CompositorProxyClientImpl();
4490 }
4491
4482 void WebViewImpl::updatePageOverlays() 4492 void WebViewImpl::updatePageOverlays()
4483 { 4493 {
4484 if (m_pageColorOverlay) 4494 if (m_pageColorOverlay)
4485 m_pageColorOverlay->update(); 4495 m_pageColorOverlay->update();
4486 if (InspectorOverlay* overlay = inspectorOverlay()) { 4496 if (InspectorOverlay* overlay = inspectorOverlay()) {
4487 PageOverlay* inspectorPageOverlay = overlay->pageOverlay(); 4497 PageOverlay* inspectorPageOverlay = overlay->pageOverlay();
4488 if (inspectorPageOverlay) 4498 if (inspectorPageOverlay)
4489 inspectorPageOverlay->update(); 4499 inspectorPageOverlay->update();
4490 } 4500 }
4491 } 4501 }
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
4524 { 4534 {
4525 // TODO(oshima): Investigate if this should return the ScreenInfo's scale fa ctor rather than 4535 // TODO(oshima): Investigate if this should return the ScreenInfo's scale fa ctor rather than
4526 // page's scale factor, which can be 1 in use-zoom-for-dsf mode. 4536 // page's scale factor, which can be 1 in use-zoom-for-dsf mode.
4527 if (!page()) 4537 if (!page())
4528 return 1; 4538 return 1;
4529 4539
4530 return page()->deviceScaleFactor(); 4540 return page()->deviceScaleFactor();
4531 } 4541 }
4532 4542
4533 } // namespace blink 4543 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698