summaryrefslogtreecommitdiffstats
path: root/components/gpu/public
diff options
context:
space:
mode:
authorben <ben@chromium.org>2015-05-21 18:02:34 -0700
committerCommit bot <commit-bot@chromium.org>2015-05-22 01:04:38 +0000
commit4b12854e86fcaeef3531f8955c6e4d0e1b7a3036 (patch)
treee3e0ae3bf19f359f29c6348d672b29fcb0e00a1f /components/gpu/public
parent2a3211d56b0395c3881d8303b43d39a59391fe9d (diff)
downloadchromium_src-4b12854e86fcaeef3531f8955c6e4d0e1b7a3036.zip
chromium_src-4b12854e86fcaeef3531f8955c6e4d0e1b7a3036.tar.gz
chromium_src-4b12854e86fcaeef3531f8955c6e4d0e1b7a3036.tar.bz2
Move GLES2, GPU & Surfaces into the ViewManager directory. This does not merge the applications, that will be a subsequent step.
R=sky@chromium.org BUG= Review URL: https://codereview.chromium.org/1150093003 Cr-Commit-Position: refs/heads/master@{#331039}
Diffstat (limited to 'components/gpu/public')
-rw-r--r--components/gpu/public/interfaces/command_buffer.mojom55
-rw-r--r--components/gpu/public/interfaces/context_provider.mojom28
-rw-r--r--components/gpu/public/interfaces/gpu.mojom12
-rw-r--r--components/gpu/public/interfaces/gpu_capabilities.mojom54
-rw-r--r--components/gpu/public/interfaces/viewport_parameter_listener.mojom12
5 files changed, 0 insertions, 161 deletions
diff --git a/components/gpu/public/interfaces/command_buffer.mojom b/components/gpu/public/interfaces/command_buffer.mojom
deleted file mode 100644
index d1bfe34..0000000
--- a/components/gpu/public/interfaces/command_buffer.mojom
+++ /dev/null
@@ -1,55 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-module mojo;
-
-import "components/gpu/public/interfaces/gpu_capabilities.mojom";
-
-struct CommandBufferState {
- int32 num_entries;
- int32 get_offset;
- int32 put_offset;
- int32 token;
- int32 error; // TODO(piman): enum
- int32 context_lost_reason; // TODO(piman): enum
- uint32 generation;
-};
-
-interface CommandBufferSyncClient {
- DidInitialize(bool success, GpuCapabilities capabilities);
- DidMakeProgress(CommandBufferState state);
-};
-
-interface CommandBufferSyncPointClient {
- DidInsertSyncPoint(uint32 sync_point);
-};
-
-interface CommandBufferLostContextObserver {
- DidLoseContext(int32 context_lost_reason);
-};
-
-interface CommandBuffer {
- // Initialize attempts to initialize the command buffer. Success or failure
- // will be communicated via the CommandBufferSyncClient DidInitialize() call.
- // If the context is lost after creation the LostContext method on the
- // CommandBufferLostContextObserver's will be called then this pipe will be
- // closed.
- Initialize(CommandBufferSyncClient sync_client,
- CommandBufferSyncPointClient sync_point_client,
- CommandBufferLostContextObserver lost_observer,
- handle<shared_buffer> shared_state);
- SetGetBuffer(int32 buffer);
- Flush(int32 put_offset);
- MakeProgress(int32 last_get_offset);
- RegisterTransferBuffer(
- int32 id, handle<shared_buffer> transfer_buffer, uint32 size);
- DestroyTransferBuffer(int32 id);
-
- // InsertSyncPoint returns the sync point returned via DidInsertSyncPoint.
- // If |retire| is true, the sync point is retired on insertion. Otherwise,
- // explicitly call RetireSyncPoint to retire it.
- InsertSyncPoint(bool retire);
- RetireSyncPoint(uint32 sync_point);
- Echo() => ();
-};
diff --git a/components/gpu/public/interfaces/context_provider.mojom b/components/gpu/public/interfaces/context_provider.mojom
deleted file mode 100644
index e51c92a..0000000
--- a/components/gpu/public/interfaces/context_provider.mojom
+++ /dev/null
@@ -1,28 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-module mojo;
-
-import "components/gpu/public/interfaces/command_buffer.mojom";
-import "components/gpu/public/interfaces/viewport_parameter_listener.mojom";
-
-// A ContextProvider can be used to provide new command buffers related to a
-// particular context, for instance configured to draw to a particular display.
-interface ContextProvider {
- // This initializes a new command buffer for this provider when available,
- // closing connections to the previously created command buffer (if any).
- //
- // This call may not return for an extended period of time if a command
- // buffer cannot be produced immediately, for example if it is associated
- // with a view that is offscreen.
- //
- // If a viewport_parameter_listener is provided it will notified be when
- // vsync parameters change for this context.
- //
- // The returned handle will be null if no command buffer can be created for
- // this request, for example if another request is made on the same provider
- // before a previous call returns.
- Create(ViewportParameterListener? viewport_parameter_listener)
- => (CommandBuffer? gles2_client);
-};
diff --git a/components/gpu/public/interfaces/gpu.mojom b/components/gpu/public/interfaces/gpu.mojom
deleted file mode 100644
index b0f18ea..0000000
--- a/components/gpu/public/interfaces/gpu.mojom
+++ /dev/null
@@ -1,12 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-module mojo;
-
-import "components/gpu/public/interfaces/command_buffer.mojom";
-
-interface Gpu {
- // Creates a new offscreen OpenGL ES 2.0 context.
- CreateOffscreenGLES2Context(CommandBuffer& gles2_client);
-};
diff --git a/components/gpu/public/interfaces/gpu_capabilities.mojom b/components/gpu/public/interfaces/gpu_capabilities.mojom
deleted file mode 100644
index 2450139..0000000
--- a/components/gpu/public/interfaces/gpu_capabilities.mojom
+++ /dev/null
@@ -1,54 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-module mojo;
-
-struct GpuShaderPrecision {
- int32 min_range;
- int32 max_range;
- int32 precision;
-};
-
-struct GpuPerStagePrecisions {
- GpuShaderPrecision low_int;
- GpuShaderPrecision medium_int;
- GpuShaderPrecision high_int;
- GpuShaderPrecision low_float;
- GpuShaderPrecision medium_float;
- GpuShaderPrecision high_float;
-};
-
-struct GpuCapabilities {
- GpuPerStagePrecisions vertex_shader_precisions;
- GpuPerStagePrecisions fragment_shader_precisions;
- int32 max_combined_texture_image_units;
- int32 max_cube_map_texture_size;
- int32 max_fragment_uniform_vectors;
- int32 max_renderbuffer_size;
- int32 max_texture_image_units;
- int32 max_texture_size;
- int32 max_varying_vectors;
- int32 max_vertex_attribs;
- int32 max_vertex_texture_image_units;
- int32 max_vertex_uniform_vectors;
- int32 num_compressed_texture_formats;
- int32 num_shader_binary_formats;
- int32 bind_generates_resource_chromium;
-
- bool post_sub_buffer;
- bool egl_image_external;
- bool texture_format_bgra8888;
- bool texture_format_etc1;
- bool texture_format_etc1_npot;
- bool texture_rectangle;
- bool iosurface;
- bool texture_usage;
- bool texture_storage;
- bool discard_framebuffer;
- bool sync_query;
- bool image;
- bool future_sync_points;
- bool blend_equation_advanced;
- bool blend_equation_advanced_coherent;
-};
diff --git a/components/gpu/public/interfaces/viewport_parameter_listener.mojom b/components/gpu/public/interfaces/viewport_parameter_listener.mojom
deleted file mode 100644
index 5afa931..0000000
--- a/components/gpu/public/interfaces/viewport_parameter_listener.mojom
+++ /dev/null
@@ -1,12 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-module mojo;
-
-interface ViewportParameterListener {
- // These parameters describe the refresh rate of the viewport. The viewport
- // refreshes every |interval| time ticks. The phase of the refresh is
- // indicated by |timebase|, which is synchronized with MojoGetTimeTicksNow.
- OnVSyncParametersUpdated(int64 timebase, int64 interval);
-};