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

Side by Side Diff: content/common/gpu/gpu_channel.h

Issue 9289052: Adding GpuMemoryManager to track GpuCommandBufferStub visibility and last_used_time and dictate mem… (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Changing to use gpu_memory_allocation.h file so it lands first Created 8 years, 11 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 | content/common/gpu/gpu_channel.cc » ('j') | content/common/gpu/gpu_channel.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_COMMON_GPU_GPU_CHANNEL_H_ 5 #ifndef CONTENT_COMMON_GPU_GPU_CHANNEL_H_
6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_H_ 6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <string> 10 #include <string>
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 void CreateViewCommandBuffer( 85 void CreateViewCommandBuffer(
86 gfx::PluginWindowHandle window, 86 gfx::PluginWindowHandle window,
87 int32 surface_id, 87 int32 surface_id,
88 const GPUCreateCommandBufferConfig& init_params, 88 const GPUCreateCommandBufferConfig& init_params,
89 int32* route_id); 89 int32* route_id);
90 90
91 gfx::GLShareGroup* share_group() const { return share_group_.get(); } 91 gfx::GLShareGroup* share_group() const { return share_group_.get(); }
92 92
93 GpuCommandBufferStub* LookupCommandBuffer(int32 route_id); 93 GpuCommandBufferStub* LookupCommandBuffer(int32 route_id);
94 94
95 std::vector<GpuCommandBufferStub*> GetCommandBuffers();
96
95 void LoseAllContexts(); 97 void LoseAllContexts();
96 98
97 // Destroy channel and all contained contexts. 99 // Destroy channel and all contained contexts.
98 void DestroySoon(); 100 void DestroySoon();
99 101
100 // Generate a route ID guaranteed to be unique for this channel. 102 // Generate a route ID guaranteed to be unique for this channel.
101 int GenerateRouteID(); 103 int GenerateRouteID();
102 104
103 // Called to add/remove a listener for a particular message routing ID. 105 // Called to add/remove a listener for a particular message routing ID.
104 void AddRoute(int32 route_id, IPC::Channel::Listener* listener); 106 void AddRoute(int32 route_id, IPC::Channel::Listener* listener);
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 bool handle_messages_scheduled_; 175 bool handle_messages_scheduled_;
174 bool processed_get_state_fast_; 176 bool processed_get_state_fast_;
175 int32 num_contexts_preferring_discrete_gpu_; 177 int32 num_contexts_preferring_discrete_gpu_;
176 178
177 base::WeakPtrFactory<GpuChannel> weak_factory_; 179 base::WeakPtrFactory<GpuChannel> weak_factory_;
178 180
179 DISALLOW_COPY_AND_ASSIGN(GpuChannel); 181 DISALLOW_COPY_AND_ASSIGN(GpuChannel);
180 }; 182 };
181 183
182 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ 184 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_
OLDNEW
« no previous file with comments | « no previous file | content/common/gpu/gpu_channel.cc » ('j') | content/common/gpu/gpu_channel.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698