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

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

Issue 1421903006: ui/gl: Move GLImage into gl namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ozone demo Created 5 years, 1 month 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 <string> 8 #include <string>
9 9
10 #include "base/containers/hash_tables.h" 10 #include "base/containers/hash_tables.h"
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 void SetPreemptByFlag( 141 void SetPreemptByFlag(
142 scoped_refptr<gpu::PreemptionFlag> preemption_flag); 142 scoped_refptr<gpu::PreemptionFlag> preemption_flag);
143 143
144 void CacheShader(const std::string& key, const std::string& shader); 144 void CacheShader(const std::string& key, const std::string& shader);
145 145
146 void AddFilter(IPC::MessageFilter* filter); 146 void AddFilter(IPC::MessageFilter* filter);
147 void RemoveFilter(IPC::MessageFilter* filter); 147 void RemoveFilter(IPC::MessageFilter* filter);
148 148
149 uint64 GetMemoryUsage(); 149 uint64 GetMemoryUsage();
150 150
151 scoped_refptr<gfx::GLImage> CreateImageForGpuMemoryBuffer( 151 scoped_refptr<gl::GLImage> CreateImageForGpuMemoryBuffer(
152 const gfx::GpuMemoryBufferHandle& handle, 152 const gfx::GpuMemoryBufferHandle& handle,
153 const gfx::Size& size, 153 const gfx::Size& size,
154 gfx::BufferFormat format, 154 gfx::BufferFormat format,
155 uint32 internalformat); 155 uint32 internalformat);
156 156
157 bool allow_future_sync_points() const { return allow_future_sync_points_; } 157 bool allow_future_sync_points() const { return allow_future_sync_points_; }
158 158
159 void HandleUpdateValueState(unsigned int target, 159 void HandleUpdateValueState(unsigned int target,
160 const gpu::ValueState& state); 160 const gpu::ValueState& state);
161 161
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 base::WeakPtr<GpuChannel> gpu_channel_; 468 base::WeakPtr<GpuChannel> gpu_channel_;
469 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; 469 scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
470 gpu::SyncPointManager* sync_point_manager_; 470 gpu::SyncPointManager* sync_point_manager_;
471 471
472 DISALLOW_COPY_AND_ASSIGN(GpuChannelMessageQueue); 472 DISALLOW_COPY_AND_ASSIGN(GpuChannelMessageQueue);
473 }; 473 };
474 474
475 } // namespace content 475 } // namespace content
476 476
477 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ 477 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698