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

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

Issue 1159923006: [tracing] Expose AddOwnershipEdge and CreateAllocatorDump with guid to blink. (blink-side). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 6 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
« no previous file with comments | « no previous file | public/platform/WebMemoryAllocatorDump.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 554 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 // registerMemoryDumpProvider() method. 565 // registerMemoryDumpProvider() method.
566 // See crbug.com/458295 for design docs. 566 // See crbug.com/458295 for design docs.
567 virtual void registerMemoryDumpProvider(blink::WebMemoryDumpProvider*) { } 567 virtual void registerMemoryDumpProvider(blink::WebMemoryDumpProvider*) { }
568 568
569 // Must be called on the thread that called registerMemoryDumpProvider(). 569 // Must be called on the thread that called registerMemoryDumpProvider().
570 virtual void unregisterMemoryDumpProvider(blink::WebMemoryDumpProvider*) { } 570 virtual void unregisterMemoryDumpProvider(blink::WebMemoryDumpProvider*) { }
571 571
572 // Returns a newly allocated WebProcessMemoryDump instance. 572 // Returns a newly allocated WebProcessMemoryDump instance.
573 virtual blink::WebProcessMemoryDump* createProcessMemoryDump() { return null ptr; } 573 virtual blink::WebProcessMemoryDump* createProcessMemoryDump() { return null ptr; }
574 574
575 typedef uint64_t WebMemoryAllocatorDumpGuid;
576
577 // Returns guid corresponding to the given string (the hash value) for
578 // creating a WebMemoryAllocatorDump.
579 virtual WebMemoryAllocatorDumpGuid createWebMemoryAllocatorDumpGuid(const We bString& guidStr) { return 0; }
580
575 // GPU ---------------------------------------------------------------- 581 // GPU ----------------------------------------------------------------
576 // 582 //
577 // May return null if GPU is not supported. 583 // May return null if GPU is not supported.
578 // Returns newly allocated and initialized offscreen WebGraphicsContext3D in stance. 584 // Returns newly allocated and initialized offscreen WebGraphicsContext3D in stance.
579 // Passing an existing context to shareContext will create the new context i n the same share group as the passed context. 585 // Passing an existing context to shareContext will create the new context i n the same share group as the passed context.
580 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap hicsContext3D::Attributes&, WebGraphicsContext3D* shareContext) { return nullptr ; } 586 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap hicsContext3D::Attributes&, WebGraphicsContext3D* shareContext) { return nullptr ; }
581 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap hicsContext3D::Attributes&, WebGraphicsContext3D* shareContext, WebGLInfo* glInf o) { return nullptr; } 587 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap hicsContext3D::Attributes&, WebGraphicsContext3D* shareContext, WebGLInfo* glInf o) { return nullptr; }
582 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap hicsContext3D::Attributes&) { return nullptr; } 588 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap hicsContext3D::Attributes&) { return nullptr; }
583 589
584 // Returns a newly allocated and initialized offscreen context provider. The provider may return a null 590 // Returns a newly allocated and initialized offscreen context provider. The provider may return a null
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
712 protected: 718 protected:
713 BLINK_PLATFORM_EXPORT Platform(); 719 BLINK_PLATFORM_EXPORT Platform();
714 virtual ~Platform() { } 720 virtual ~Platform() { }
715 721
716 WebThread* m_mainThread; 722 WebThread* m_mainThread;
717 }; 723 };
718 724
719 } // namespace blink 725 } // namespace blink
720 726
721 #endif 727 #endif
OLDNEW
« no previous file with comments | « no previous file | public/platform/WebMemoryAllocatorDump.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698