OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_DELEGATE_H_ | |
6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_DELEGATE_H_ | |
7 | |
8 namespace content { | |
9 | |
10 struct GPUMemoryUmaStats; | |
11 | |
12 class GpuChannelManagerDelegate { | |
13 public: | |
14 virtual void AddSubscription(int32_t client_id, unsigned int target) = 0; | |
15 | |
16 virtual void CacheShader(int32_t client_id, | |
no sievers
2016/02/19 00:19:24
nit: Maybe this could be StoreShaderToDisk() (you
Fady Samuel
2016/02/19 01:13:11
Done.
| |
17 const std::string& key, | |
18 const std::string& shader) = 0; | |
19 // Response from GPU to an EstablishChannel request. | |
20 virtual void ChannelEstablished(const IPC::ChannelHandle& channel_handle) = 0; | |
21 | |
22 // Notification from GPU that the channel is destroyed. | |
23 virtual void DestroyChannel(int client_id) = 0; | |
no sievers
2016/02/19 00:19:24
nit: how about DidDestroyChannel()?
Fady Samuel
2016/02/19 01:13:11
Done.
| |
24 | |
25 virtual void DidCreateOffscreenContext(const GURL& active_url) = 0; | |
26 | |
27 virtual void DidDestroyOffscreenContext(const GURL& active_url) = 0; | |
28 | |
29 virtual void DidLoseContext(bool offscreen, | |
30 gpu::error::ContextLostReason reason, | |
31 const GURL& active_url) = 0; | |
32 | |
33 virtual void GpuMemoryUmaStats(const GPUMemoryUmaStats& params) = 0; | |
34 | |
35 virtual void RemoveSubscription(int32_t client_id, unsigned int target) = 0; | |
36 | |
37 protected: | |
38 virtual ~GpuChannelManagerDelegate() {} | |
39 }; | |
40 | |
41 } // namespace content | |
42 | |
43 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_DELEGATE_H_ | |
OLD | NEW |