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

Side by Side Diff: Source/WebKit/chromium/src/WebViewImpl.h

Issue 10199014: Merge 114800 - [chromium] Plumb a compositor surface ready notification through to the threaded com… (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1084/
Patch Set: Created 8 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 // WebWidget methods: 110 // WebWidget methods:
111 virtual void close(); 111 virtual void close();
112 virtual WebSize size() { return m_size; } 112 virtual WebSize size() { return m_size; }
113 virtual void willStartLiveResize(); 113 virtual void willStartLiveResize();
114 virtual void resize(const WebSize&); 114 virtual void resize(const WebSize&);
115 virtual void willEndLiveResize(); 115 virtual void willEndLiveResize();
116 virtual void willEnterFullScreen(); 116 virtual void willEnterFullScreen();
117 virtual void didEnterFullScreen(); 117 virtual void didEnterFullScreen();
118 virtual void willExitFullScreen(); 118 virtual void willExitFullScreen();
119 virtual void didExitFullScreen(); 119 virtual void didExitFullScreen();
120 virtual void setCompositorSurfaceReady();
120 virtual void animate(double); 121 virtual void animate(double);
121 virtual void layout(); // Also implements CCLayerTreeHostClient::layout() 122 virtual void layout(); // Also implements CCLayerTreeHostClient::layout()
122 virtual void paint(WebCanvas*, const WebRect&); 123 virtual void paint(WebCanvas*, const WebRect&);
123 virtual void themeChanged(); 124 virtual void themeChanged();
124 virtual void composite(bool finish); 125 virtual void composite(bool finish);
125 virtual void setNeedsRedraw(); 126 virtual void setNeedsRedraw();
126 virtual bool isInputThrottled() const; 127 virtual bool isInputThrottled() const;
127 virtual bool handleInputEvent(const WebInputEvent&); 128 virtual bool handleInputEvent(const WebInputEvent&);
128 virtual void mouseCaptureLost(); 129 virtual void mouseCaptureLost();
129 virtual void setFocus(bool enable); 130 virtual void setFocus(bool enable);
(...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after
708 #if USE(ACCELERATED_COMPOSITING) 709 #if USE(ACCELERATED_COMPOSITING)
709 WebCore::IntRect m_rootLayerScrollDamage; 710 WebCore::IntRect m_rootLayerScrollDamage;
710 OwnPtr<NonCompositedContentHost> m_nonCompositedContentHost; 711 OwnPtr<NonCompositedContentHost> m_nonCompositedContentHost;
711 WebLayerTreeView m_layerTreeView; 712 WebLayerTreeView m_layerTreeView;
712 WebLayer m_rootLayer; 713 WebLayer m_rootLayer;
713 WebCore::GraphicsLayer* m_rootGraphicsLayer; 714 WebCore::GraphicsLayer* m_rootGraphicsLayer;
714 bool m_isAcceleratedCompositingActive; 715 bool m_isAcceleratedCompositingActive;
715 bool m_compositorCreationFailed; 716 bool m_compositorCreationFailed;
716 // If true, the graphics context is being restored. 717 // If true, the graphics context is being restored.
717 bool m_recreatingGraphicsContext; 718 bool m_recreatingGraphicsContext;
719 bool m_compositorSurfaceReady;
718 #endif 720 #endif
719 static const WebInputEvent* m_currentInputEvent; 721 static const WebInputEvent* m_currentInputEvent;
720 722
721 #if ENABLE(INPUT_SPEECH) 723 #if ENABLE(INPUT_SPEECH)
722 OwnPtr<SpeechInputClientImpl> m_speechInputClient; 724 OwnPtr<SpeechInputClientImpl> m_speechInputClient;
723 #endif 725 #endif
724 // If we attempt to fetch the on-screen GraphicsContext3D before 726 // If we attempt to fetch the on-screen GraphicsContext3D before
725 // the compositor has been turned on, we need to instantiate it 727 // the compositor has been turned on, we need to instantiate it
726 // early. This member holds on to the GC3D in this case. 728 // early. This member holds on to the GC3D in this case.
727 OwnPtr<WebGraphicsContext3D> m_temporaryOnscreenGraphicsContext3D; 729 OwnPtr<WebGraphicsContext3D> m_temporaryOnscreenGraphicsContext3D;
728 OwnPtr<DeviceOrientationClientProxy> m_deviceOrientationClientProxy; 730 OwnPtr<DeviceOrientationClientProxy> m_deviceOrientationClientProxy;
729 OwnPtr<GeolocationClientProxy> m_geolocationClientProxy; 731 OwnPtr<GeolocationClientProxy> m_geolocationClientProxy;
730 732
731 #if ENABLE(MEDIA_STREAM) 733 #if ENABLE(MEDIA_STREAM)
732 UserMediaClientImpl m_userMediaClientImpl; 734 UserMediaClientImpl m_userMediaClientImpl;
733 #endif 735 #endif
734 OwnPtr<WebCore::ActivePlatformGestureAnimation> m_gestureAnimation; 736 OwnPtr<WebCore::ActivePlatformGestureAnimation> m_gestureAnimation;
735 WebPoint m_lastWheelPosition; 737 WebPoint m_lastWheelPosition;
736 WebPoint m_lastWheelGlobalPosition; 738 WebPoint m_lastWheelGlobalPosition;
737 int m_flingModifier; 739 int m_flingModifier;
738 }; 740 };
739 741
740 } // namespace WebKit 742 } // namespace WebKit
741 743
742 #endif 744 #endif
OLDNEW
« no previous file with comments | « Source/WebKit/chromium/src/WebPopupMenuImpl.cpp ('k') | Source/WebKit/chromium/src/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698