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

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

Issue 10083056: GpuMemoryManager suggests values for renderer Contents Texture Managers' preferred memory limit. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 | Annotate | Revision Log
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_COMMAND_BUFFER_STUB_H_ 5 #ifndef CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
6 #define CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 6 #define CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
7 #pragma once 7 #pragma once
8 8
9 #if defined(ENABLE_GPU) 9 #if defined(ENABLE_GPU)
10 10
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 void DelayEcho(IPC::Message*); 139 void DelayEcho(IPC::Message*);
140 140
141 gpu::gles2::GLES2Decoder* decoder() const { return decoder_.get(); } 141 gpu::gles2::GLES2Decoder* decoder() const { return decoder_.get(); }
142 gpu::GpuScheduler* scheduler() const { return scheduler_.get(); } 142 gpu::GpuScheduler* scheduler() const { return scheduler_.get(); }
143 143
144 // Identifies the target surface. 144 // Identifies the target surface.
145 int32 surface_id() const { 145 int32 surface_id() const {
146 return (surface_state_.get()) ? surface_state_->surface_id : 0; 146 return (surface_state_.get()) ? surface_state_->surface_id : 0;
147 } 147 }
148 148
149 bool is_ui_stub() const { return handle_.handle; }
mmocny 2012/04/18 20:43:11 This was a quick solution to a problem. It warren
piman 2012/04/18 22:20:14 nak... this is not true on non-aura (FTM even on a
mmocny 2012/04/20 18:37:55 Yes, ideally incoming allocation hints are suffici
150
149 // Identifies the various GpuCommandBufferStubs in the GPU process belonging 151 // Identifies the various GpuCommandBufferStubs in the GPU process belonging
150 // to the same renderer process. 152 // to the same renderer process.
151 int32 route_id() const { return route_id_; } 153 int32 route_id() const { return route_id_; }
152 154
153 gfx::GpuPreference gpu_preference() { return gpu_preference_; } 155 gfx::GpuPreference gpu_preference() { return gpu_preference_; }
154 156
155 // Sends a message to the console. 157 // Sends a message to the console.
156 void SendConsoleMessage(int32 id, const std::string& message); 158 void SendConsoleMessage(int32 id, const std::string& message);
157 159
158 gfx::GLSurface* surface() const { return surface_; } 160 gfx::GLSurface* surface() const { return surface_; }
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 IDMap<GpuVideoDecodeAccelerator, IDMapOwnPointer> video_decoders_; 247 IDMap<GpuVideoDecodeAccelerator, IDMapOwnPointer> video_decoders_;
246 248
247 ObserverList<DestructionObserver> destruction_observers_; 249 ObserverList<DestructionObserver> destruction_observers_;
248 250
249 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); 251 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub);
250 }; 252 };
251 253
252 #endif // defined(ENABLE_GPU) 254 #endif // defined(ENABLE_GPU)
253 255
254 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 256 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698