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

Side by Side Diff: gpu/ipc/service/gpu_channel_manager_delegate.h

Issue 2310623002: Remove GPU memory UMAs (Closed)
Patch Set: Rebase Created 4 years, 3 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 | « gpu/ipc/common/memory_stats.cc ('k') | gpu/ipc/service/gpu_channel_test_common.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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 GPU_IPC_SERVICE_GPU_CHANNEL_MANAGER_DELEGATE_H_ 5 #ifndef GPU_IPC_SERVICE_GPU_CHANNEL_MANAGER_DELEGATE_H_
6 #define GPU_IPC_SERVICE_GPU_CHANNEL_MANAGER_DELEGATE_H_ 6 #define GPU_IPC_SERVICE_GPU_CHANNEL_MANAGER_DELEGATE_H_
7 7
8 #include "gpu/command_buffer/common/constants.h" 8 #include "gpu/command_buffer/common/constants.h"
9 #include "gpu/ipc/common/surface_handle.h" 9 #include "gpu/ipc/common/surface_handle.h"
10 10
(...skipping 18 matching lines...) Expand all
29 29
30 // Tells the delegate that an offscreen context was destroyed for the provided 30 // Tells the delegate that an offscreen context was destroyed for the provided
31 // |active_url|. 31 // |active_url|.
32 virtual void DidDestroyOffscreenContext(const GURL& active_url) = 0; 32 virtual void DidDestroyOffscreenContext(const GURL& active_url) = 0;
33 33
34 // Tells the delegate that a context was lost. 34 // Tells the delegate that a context was lost.
35 virtual void DidLoseContext(bool offscreen, 35 virtual void DidLoseContext(bool offscreen,
36 error::ContextLostReason reason, 36 error::ContextLostReason reason,
37 const GURL& active_url) = 0; 37 const GURL& active_url) = 0;
38 38
39 // Tells the delegate about GPU memory usage statistics for UMA logging.
40 virtual void GpuMemoryUmaStats(const GPUMemoryUmaStats& params) = 0;
41
42 // Tells the delegate to cache the given shader information in persistent 39 // Tells the delegate to cache the given shader information in persistent
43 // storage. The embedder is expected to repopulate the in-memory cache through 40 // storage. The embedder is expected to repopulate the in-memory cache through
44 // the respective GpuChannelManager API. 41 // the respective GpuChannelManager API.
45 virtual void StoreShaderToDisk(int32_t client_id, 42 virtual void StoreShaderToDisk(int32_t client_id,
46 const std::string& key, 43 const std::string& key,
47 const std::string& shader) = 0; 44 const std::string& shader) = 0;
48 45
49 #if defined(OS_WIN) 46 #if defined(OS_WIN)
50 virtual void SendAcceleratedSurfaceCreatedChildWindow( 47 virtual void SendAcceleratedSurfaceCreatedChildWindow(
51 SurfaceHandle parent_window, 48 SurfaceHandle parent_window,
52 SurfaceHandle child_window) = 0; 49 SurfaceHandle child_window) = 0;
53 #endif 50 #endif
54 51
55 // Sets the currently active URL. Use GURL() to clear the URL. 52 // Sets the currently active URL. Use GURL() to clear the URL.
56 virtual void SetActiveURL(const GURL& url) = 0; 53 virtual void SetActiveURL(const GURL& url) = 0;
57 54
58 protected: 55 protected:
59 virtual ~GpuChannelManagerDelegate() {} 56 virtual ~GpuChannelManagerDelegate() {}
60 }; 57 };
61 58
62 } // namespace gpu 59 } // namespace gpu
63 60
64 #endif // GPU_IPC_SERVICE_GPU_CHANNEL_MANAGER_DELEGATE_H_ 61 #endif // GPU_IPC_SERVICE_GPU_CHANNEL_MANAGER_DELEGATE_H_
OLDNEW
« no previous file with comments | « gpu/ipc/common/memory_stats.cc ('k') | gpu/ipc/service/gpu_channel_test_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698