OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_PUBLIC_UTILITY_UTILITY_THREAD_H_ | 5 #ifndef CONTENT_PUBLIC_UTILITY_UTILITY_THREAD_H_ |
6 #define CONTENT_PUBLIC_UTILITY_UTILITY_THREAD_H_ | 6 #define CONTENT_PUBLIC_UTILITY_UTILITY_THREAD_H_ |
7 | 7 |
8 #include "content/public/child/child_thread.h" | 8 #include "content/public/child/child_thread.h" |
9 | 9 |
10 namespace content { | 10 namespace content { |
11 | 11 |
12 class CONTENT_EXPORT UtilityThread : virtual public ChildThread { | 12 class CONTENT_EXPORT UtilityThread : virtual public ChildThread { |
13 public: | 13 public: |
14 // Returns the one utility thread for this process. Note that this can only | 14 // Returns the one utility thread for this process. Note that this can only |
15 // be accessed when running on the utility thread itself. | 15 // be accessed when running on the utility thread itself. |
16 static UtilityThread* Get(); | 16 static UtilityThread* Get(); |
17 | 17 |
18 UtilityThread(); | 18 UtilityThread(); |
19 ~UtilityThread() override; | 19 ~UtilityThread() override; |
20 | 20 |
21 // Releases the process if we are not (or no longer) in batch mode. | 21 // Releases the process if we are not (or no longer) in batch mode. |
22 virtual void ReleaseProcessIfNeeded() = 0; | 22 virtual void ReleaseProcessIfNeeded() = 0; |
23 | 23 |
24 // Initializes blink if it hasn't already been initialized. | 24 // Initializes blink if it hasn't already been initialized. |
25 virtual void EnsureBlinkInitialized() = 0; | 25 virtual void EnsureBlinkInitialized() = 0; |
| 26 |
| 27 // Set up resources for Skia to use. |
| 28 virtual void EnsureReadyForSkia() = 0; |
26 }; | 29 }; |
27 | 30 |
28 } // namespace content | 31 } // namespace content |
29 | 32 |
30 #endif // CONTENT_PUBLIC_UTILITY_UTILITY_THREAD_H_ | 33 #endif // CONTENT_PUBLIC_UTILITY_UTILITY_THREAD_H_ |
OLD | NEW |