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

Side by Side Diff: third_party/WebKit/public/platform/Platform.h

Issue 2391753003: Stop exposing --disable-gpu-compositing as a Blink RuntimeEnabledFeature (Closed)
Patch Set: simplify changes Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 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 536 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 547
548 // Creates a new fling animation curve instance for device |deviceSource| 548 // Creates a new fling animation curve instance for device |deviceSource|
549 // with |velocity| and already scrolled |cumulativeScroll| pixels. 549 // with |velocity| and already scrolled |cumulativeScroll| pixels.
550 virtual WebGestureCurve* createFlingAnimationCurve( 550 virtual WebGestureCurve* createFlingAnimationCurve(
551 WebGestureDevice deviceSource, 551 WebGestureDevice deviceSource,
552 const WebFloatPoint& velocity, 552 const WebFloatPoint& velocity,
553 const WebSize& cumulativeScroll) { 553 const WebSize& cumulativeScroll) {
554 return nullptr; 554 return nullptr;
555 } 555 }
556 556
557 // Whether the command line flag: --disable-gpu-compositing or --disable-gpu
558 // exists or not
559 // NOTE: This function should not be called from core/ and modules/, but
560 // called by platform/graphics/ is fine.
561 virtual bool isGPUCompositingEnabled() { return true; }
562
557 // WebRTC ---------------------------------------------------------- 563 // WebRTC ----------------------------------------------------------
558 564
559 // Creates a WebRTCPeerConnectionHandler for RTCPeerConnection. 565 // Creates a WebRTCPeerConnectionHandler for RTCPeerConnection.
560 // May return null if WebRTC functionality is not avaliable or if it's out of 566 // May return null if WebRTC functionality is not avaliable or if it's out of
561 // resources. 567 // resources.
562 virtual WebRTCPeerConnectionHandler* createRTCPeerConnectionHandler( 568 virtual WebRTCPeerConnectionHandler* createRTCPeerConnectionHandler(
563 WebRTCPeerConnectionHandlerClient*) { 569 WebRTCPeerConnectionHandlerClient*) {
564 return nullptr; 570 return nullptr;
565 } 571 }
566 572
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
690 protected: 696 protected:
691 Platform(); 697 Platform();
692 virtual ~Platform() {} 698 virtual ~Platform() {}
693 699
694 WebThread* m_mainThread; 700 WebThread* m_mainThread;
695 }; 701 };
696 702
697 } // namespace blink 703 } // namespace blink
698 704
699 #endif 705 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebRuntimeFeatures.cpp ('k') | third_party/WebKit/public/web/WebRuntimeFeatures.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698