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

Unified Diff: gpu/command_buffer/service/in_process_command_buffer.h

Issue 205193006: gpu: Remove map_image field from gpu::Capabilities. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move TODO Created 6 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 side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/service/in_process_command_buffer.h
diff --git a/gpu/command_buffer/service/in_process_command_buffer.h b/gpu/command_buffer/service/in_process_command_buffer.h
index f42e19efca815178e133fecc0926fea15ca2cd27..5a0b28f5dce0601e1fbb4652f66e561412911a15 100644
--- a/gpu/command_buffer/service/in_process_command_buffer.h
+++ b/gpu/command_buffer/service/in_process_command_buffer.h
@@ -14,6 +14,7 @@
#include "base/memory/weak_ptr.h"
#include "base/synchronization/lock.h"
#include "base/synchronization/waitable_event.h"
+#include "gpu/command_buffer/common/capabilities.h"
#include "gpu/command_buffer/common/command_buffer.h"
#include "gpu/command_buffer/common/gpu_control.h"
#include "gpu/gpu_export.h"
@@ -98,7 +99,6 @@ class GPU_EXPORT InProcessCommandBuffer : public CommandBuffer,
virtual gpu::error::Error GetLastError() OVERRIDE;
// GpuControl implementation:
- virtual gpu::Capabilities GetCapabilities() OVERRIDE;
virtual gfx::GpuMemoryBuffer* CreateGpuMemoryBuffer(
size_t width,
size_t height,
@@ -140,6 +140,8 @@ class GPU_EXPORT InProcessCommandBuffer : public CommandBuffer,
uint32 stream_id);
#endif
+ const gpu::Capabilities& capabilities() const { return capabilities_; }
+
private:
struct InitializeOnGpuThreadParams {
bool is_offscreen;
« no previous file with comments | « gpu/command_buffer/service/gpu_control_service.cc ('k') | gpu/command_buffer/service/in_process_command_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698