Changeset 201859 in webkit
- Timestamp:
- Jun 9, 2016 5:07:38 AM (8 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r201857 r201859 1 2016-06-09 Carlos Garcia Campos <cgarcia@igalia.com> 2 3 [Threaded Compositor] Remove ThreadedCompositor::setNeedsDisplay() 4 https://bugs.webkit.org/show_bug.cgi?id=158523 5 6 Reviewed by Michael Catanzaro. 7 8 ThreadedCompositor::setNeedsDisplay() is always called from the main thread and schedules a task to the 9 compositing thread to schedule an immediate update. But RunLoop::Timer is thread-safe so we don't really need to 10 schedule a task to the update the timer in the compositing thread, we can do that directly in the main 11 thread. And that's exactly what scheduleDisplayImmediately() does, so we can use it instead of setNeedsDisplay(). 12 13 * Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.cpp: 14 (WebKit::ThreadedCompositor::setNeedsDisplay(): Deleted. 15 (WebKit::ThreadedCompositor::updateSceneState): 16 * Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.h: 17 1 18 2016-06-08 Antti Koivisto <antti@apple.com> 2 19 -
trunk/Source/WebKit2/Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.cpp
r199048 r201859 62 62 } 63 63 64 void ThreadedCompositor::setNeedsDisplay()65 {66 RefPtr<ThreadedCompositor> protector(this);67 callOnCompositingThread([protector] {68 protector->scheduleDisplayImmediately();69 });70 }71 72 64 void ThreadedCompositor::setNativeSurfaceHandleForCompositing(uint64_t handle) 73 65 { … … 222 214 }); 223 215 224 s etNeedsDisplay();216 scheduleDisplayImmediately(); 225 217 } 226 218 -
trunk/Source/WebKit2/Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.h
r199048 r201859 65 65 virtual ~ThreadedCompositor(); 66 66 67 void setNeedsDisplay();68 69 67 void setNativeSurfaceHandleForCompositing(uint64_t); 70 68 void setDeviceScaleFactor(float);
Note: See TracChangeset
for help on using the changeset viewer.