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

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

Issue 2514323006: Allow Blink to generate cc::FrameSinkId from RenderThread (Closed)
Patch Set: change to generateFrameSinkId Created 4 years 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 | « content/renderer/renderer_blink_platform_impl.cc ('k') | no next file » | 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 #include "WebPlatformEventType.h" 48 #include "WebPlatformEventType.h"
49 #include "WebSize.h" 49 #include "WebSize.h"
50 #include "WebSpeechSynthesizer.h" 50 #include "WebSpeechSynthesizer.h"
51 #include "WebStorageQuotaCallbacks.h" 51 #include "WebStorageQuotaCallbacks.h"
52 #include "WebStorageQuotaType.h" 52 #include "WebStorageQuotaType.h"
53 #include "WebString.h" 53 #include "WebString.h"
54 #include "WebURLError.h" 54 #include "WebURLError.h"
55 #include "WebVector.h" 55 #include "WebVector.h"
56 #include "base/metrics/user_metrics_action.h" 56 #include "base/metrics/user_metrics_action.h"
57 #include "cc/resources/shared_bitmap.h" 57 #include "cc/resources/shared_bitmap.h"
58 #include "cc/surfaces/frame_sink_id.h"
58 59
59 class GrContext; 60 class GrContext;
60 61
61 namespace gpu { 62 namespace gpu {
62 class GpuMemoryBufferManager; 63 class GpuMemoryBufferManager;
63 } 64 }
64 65
65 namespace v8 { 66 namespace v8 {
66 class Context; 67 class Context;
67 template <class T> 68 template <class T>
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 // Returns the maximum amount of memory a decoded image should be allowed. 315 // Returns the maximum amount of memory a decoded image should be allowed.
315 // See comments on ImageDecoder::m_maxDecodedBytes. 316 // See comments on ImageDecoder::m_maxDecodedBytes.
316 virtual size_t maxDecodedImageBytes() { return noDecodedImageByteLimit; } 317 virtual size_t maxDecodedImageBytes() { return noDecodedImageByteLimit; }
317 318
318 // Process ------------------------------------------------------------- 319 // Process -------------------------------------------------------------
319 320
320 // Returns a unique identifier for a process. This may not necessarily be 321 // Returns a unique identifier for a process. This may not necessarily be
321 // the process's process ID. 322 // the process's process ID.
322 virtual uint32_t getUniqueIdForProcess() { return 0; } 323 virtual uint32_t getUniqueIdForProcess() { return 0; }
323 324
325 // Returns a unique FrameSinkID for the current renderer process
326 virtual cc::FrameSinkId generateFrameSinkId() { return cc::FrameSinkId(); }
327
324 // Message Ports ------------------------------------------------------- 328 // Message Ports -------------------------------------------------------
325 329
326 // Creates a Message Port Channel pair. This can be called on any thread. 330 // Creates a Message Port Channel pair. This can be called on any thread.
327 // The returned objects should only be used on the thread they were created 331 // The returned objects should only be used on the thread they were created
328 // on. 332 // on.
329 virtual void createMessageChannel(WebMessagePortChannel** channel1, 333 virtual void createMessageChannel(WebMessagePortChannel** channel1,
330 WebMessagePortChannel** channel2) { 334 WebMessagePortChannel** channel2) {
331 *channel1 = 0; 335 *channel1 = 0;
332 *channel2 = 0; 336 *channel2 = 0;
333 } 337 }
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
675 protected: 679 protected:
676 Platform(); 680 Platform();
677 virtual ~Platform() {} 681 virtual ~Platform() {}
678 682
679 WebThread* m_mainThread; 683 WebThread* m_mainThread;
680 }; 684 };
681 685
682 } // namespace blink 686 } // namespace blink
683 687
684 #endif 688 #endif
OLDNEW
« no previous file with comments | « content/renderer/renderer_blink_platform_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698