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

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

Issue 962723002: Change CHROMIUM_image declarations to support multi planar input. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reveman@ comments. Created 5 years, 9 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
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 7
8 #include <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 10
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 void SetPreemptByFlag( 146 void SetPreemptByFlag(
147 scoped_refptr<gpu::PreemptionFlag> preemption_flag); 147 scoped_refptr<gpu::PreemptionFlag> preemption_flag);
148 148
149 void CacheShader(const std::string& key, const std::string& shader); 149 void CacheShader(const std::string& key, const std::string& shader);
150 150
151 void AddFilter(IPC::MessageFilter* filter); 151 void AddFilter(IPC::MessageFilter* filter);
152 void RemoveFilter(IPC::MessageFilter* filter); 152 void RemoveFilter(IPC::MessageFilter* filter);
153 153
154 uint64 GetMemoryUsage(); 154 uint64 GetMemoryUsage();
155 155
156 scoped_refptr<gfx::GLImage> CreateImageForGpuMemoryBuffer( 156 scoped_refptr<gfx::GLImage> CreateImageForGpuMemoryBuffers(
157 const gfx::GpuMemoryBufferHandle& handle, 157 const std::vector<gfx::GpuMemoryBufferHandle>& handles,
158 const gfx::Size& size, 158 const gfx::Size& size,
159 gfx::GpuMemoryBuffer::Format format, 159 const std::vector<gfx::GpuMemoryBuffer::Format>& formats,
160 uint32 internalformat); 160 uint32 internalformat);
161 161
162 bool allow_future_sync_points() const { return allow_future_sync_points_; } 162 bool allow_future_sync_points() const { return allow_future_sync_points_; }
163 163
164 void HandleUpdateValueState(unsigned int target, 164 void HandleUpdateValueState(unsigned int target,
165 const gpu::ValueState& state); 165 const gpu::ValueState& state);
166 166
167 // Visible for testing. 167 // Visible for testing.
168 const gpu::ValueStateMap* pending_valuebuffer_state() const { 168 const gpu::ValueStateMap* pending_valuebuffer_state() const {
169 return pending_valuebuffer_state_.get(); 169 return pending_valuebuffer_state_.get();
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 // that any WeakPtrs to Controller are invalidated before its members 248 // that any WeakPtrs to Controller are invalidated before its members
249 // variable's destructors are executed, rendering them invalid. 249 // variable's destructors are executed, rendering them invalid.
250 base::WeakPtrFactory<GpuChannel> weak_factory_; 250 base::WeakPtrFactory<GpuChannel> weak_factory_;
251 251
252 DISALLOW_COPY_AND_ASSIGN(GpuChannel); 252 DISALLOW_COPY_AND_ASSIGN(GpuChannel);
253 }; 253 };
254 254
255 } // namespace content 255 } // namespace content
256 256
257 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ 257 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698