mirror of
https://github.com/brl/mutter.git
synced 2025-06-17 10:39:31 +00:00
build
cogl
driver
gl
nop
cogl-attribute-nop-private.h
cogl-attribute-nop.c
cogl-clip-stack-nop-private.h
cogl-clip-stack-nop.c
cogl-driver-nop.c
cogl-framebuffer-nop-private.h
cogl-framebuffer-nop.c
cogl-texture-2d-nop-private.h
cogl-texture-2d-nop.c
gl-prototypes
tesselator
winsys
Makefile.am
cogl-1.0.pc.in
cogl-2.0-experimental.pc.in
cogl-atlas-texture-private.h
cogl-atlas-texture.c
cogl-atlas.c
cogl-atlas.h
cogl-attribute-buffer-private.h
cogl-attribute-buffer.c
cogl-attribute-buffer.h
cogl-attribute-private.h
cogl-attribute.c
cogl-attribute.h
cogl-auto-texture.c
cogl-bitmap-conversion.c
cogl-bitmap-packing.h
cogl-bitmap-pixbuf.c
cogl-bitmap-private.h
cogl-bitmap.c
cogl-bitmap.h
cogl-bitmask.c
cogl-bitmask.h
cogl-blend-string.c
cogl-blend-string.h
cogl-blit.c
cogl-blit.h
cogl-boxed-value.c
cogl-boxed-value.h
cogl-buffer-private.h
cogl-buffer.c
cogl-buffer.h
cogl-clip-stack.c
cogl-clip-stack.h
cogl-clip-state-private.h
cogl-clip-state.c
cogl-clip-state.h
cogl-closure-list-private.h
cogl-closure-list.c
cogl-clutter-xlib.h
cogl-clutter.c
cogl-clutter.h
cogl-color-private.h
cogl-color.c
cogl-color.h
cogl-config-private.h
cogl-config.c
cogl-context-private.h
cogl-context.c
cogl-context.h
cogl-debug-options.h
cogl-debug.c
cogl-debug.h
cogl-defines.h.in
cogl-defines.h.win32.in
cogl-defines.h.win32_SDL.in
cogl-deprecated.h
cogl-depth-state-private.h
cogl-depth-state.c
cogl-depth-state.h
cogl-display-private.h
cogl-display.c
cogl-display.h
cogl-driver.h
cogl-egl-defines.h.in
cogl-egl.h
cogl-enum-types.c.in
cogl-enum-types.h.in
cogl-error-private.h
cogl-error.c
cogl-error.h
cogl-euler.c
cogl-euler.h
cogl-feature-private.c
cogl-feature-private.h
cogl-fence-private.h
cogl-fence.c
cogl-fence.h
cogl-fixed.c
cogl-fixed.h
cogl-flags.h
cogl-frame-info-private.h
cogl-frame-info.c
cogl-frame-info.h
cogl-framebuffer-private.h
cogl-framebuffer.c
cogl-framebuffer.h
cogl-gl-header.h.in
cogl-gl-header.h.win32
cogl-gles2-context-private.h
cogl-gles2-context.c
cogl-gles2-types.h
cogl-gles2.h
cogl-glib-source.c
cogl-glib-source.h
cogl-glsl-shader-boilerplate.h
cogl-glsl-shader-private.h
cogl-glsl-shader.c
cogl-glx-display-private.h
cogl-glx-renderer-private.h
cogl-gpu-info-private.h
cogl-gpu-info.c
cogl-gtype-private.h
cogl-i18n-private.h
cogl-index-buffer-private.h
cogl-index-buffer.c
cogl-index-buffer.h
cogl-indices-private.h
cogl-indices.c
cogl-indices.h
cogl-journal-private.h
cogl-journal.c
cogl-kms-display.h
cogl-kms-renderer.h
cogl-list.c
cogl-list.h
cogl-macros.h
cogl-magazine-private.h
cogl-magazine.c
cogl-material-compat.c
cogl-material-compat.h
cogl-matrix-private.h
cogl-matrix-stack-private.h
cogl-matrix-stack.c
cogl-matrix-stack.h
cogl-matrix.c
cogl-matrix.h
cogl-memory-stack-private.h
cogl-memory-stack.c
cogl-meta-texture.c
cogl-meta-texture.h
cogl-node-private.h
cogl-node.c
cogl-object-private.h
cogl-object.c
cogl-object.h
cogl-offscreen.h
cogl-onscreen-private.h
cogl-onscreen-template-private.h
cogl-onscreen-template.c
cogl-onscreen-template.h
cogl-onscreen.c
cogl-onscreen.h
cogl-output-private.h
cogl-output.c
cogl-output.h
cogl-pango.h
cogl-path-functions.h
cogl-path-private.h
cogl-path.c
cogl-path.h
cogl-pipeline-cache.c
cogl-pipeline-cache.h
cogl-pipeline-debug.c
cogl-pipeline-hash-table.c
cogl-pipeline-hash-table.h
cogl-pipeline-layer-private.h
cogl-pipeline-layer-state-private.h
cogl-pipeline-layer-state.c
cogl-pipeline-layer-state.h
cogl-pipeline-layer.c
cogl-pipeline-private.h
cogl-pipeline-snippet-private.h
cogl-pipeline-snippet.c
cogl-pipeline-state-private.h
cogl-pipeline-state.c
cogl-pipeline-state.h
cogl-pipeline.c
cogl-pipeline.h
cogl-pixel-buffer-private.h
cogl-pixel-buffer.c
cogl-pixel-buffer.h
cogl-point-in-poly-private.h
cogl-point-in-poly.c
cogl-poll-private.h
cogl-poll.c
cogl-poll.h
cogl-primitive-private.h
cogl-primitive-texture.c
cogl-primitive-texture.h
cogl-primitive.c
cogl-primitive.h
cogl-primitives-private.h
cogl-primitives.c
cogl-primitives.h
cogl-private.h
cogl-profile.c
cogl-profile.h
cogl-program-private.h
cogl-program.c
cogl-quaternion-private.h
cogl-quaternion.c
cogl-quaternion.h
cogl-rectangle-map.c
cogl-rectangle-map.h
cogl-renderer-private.h
cogl-renderer.c
cogl-renderer.h
cogl-sampler-cache-private.h
cogl-sampler-cache.c
cogl-sdl.c
cogl-sdl.h
cogl-shader-private.h
cogl-shader.c
cogl-shader.h
cogl-snippet-private.h
cogl-snippet.c
cogl-snippet.h
cogl-spans.c
cogl-spans.h
cogl-sub-texture-private.h
cogl-sub-texture.c
cogl-sub-texture.h
cogl-swap-chain-private.h
cogl-swap-chain.c
cogl-swap-chain.h
cogl-texture-2d-gl.h
cogl-texture-2d-private.h
cogl-texture-2d-sliced-private.h
cogl-texture-2d-sliced.c
cogl-texture-2d-sliced.h
cogl-texture-2d.c
cogl-texture-2d.h
cogl-texture-3d-private.h
cogl-texture-3d.c
cogl-texture-3d.h
cogl-texture-driver.h
cogl-texture-private.h
cogl-texture-rectangle-private.h
cogl-texture-rectangle.c
cogl-texture-rectangle.h
cogl-texture.c
cogl-texture.h
cogl-types.h
cogl-util.c
cogl-util.h
cogl-vector.c
cogl-vector.h
cogl-version.h
cogl-vertex-buffer-private.h
cogl-vertex-buffer.c
cogl-vertex-buffer.h
cogl-wayland-client.h
cogl-wayland-renderer.h
cogl-wayland-server.h
cogl-win32-renderer.c
cogl-win32-renderer.h
cogl-x11-renderer-private.h
cogl-xlib-private.h
cogl-xlib-renderer-private.h
cogl-xlib-renderer.c
cogl-xlib-renderer.h
cogl-xlib.c
cogl-xlib.h
cogl.c
cogl.h
cogl.rc.in
cogl.symbols
cogl1-context.h
cogl2-compatibility.c
cogl2-compatibility.h
cogl2-experimental.h
cogl2-path.c
cogl2-path.h
stb_image.c
cogl-gles2
cogl-gst
cogl-pango
deps
doc
examples
po
test-fixtures
tests
.gitignore
.vimrc
COPYING
ChangeLog
Makefile.am
NEWS
README.in
autogen.sh
cogl.doap
config-custom.h
config.h.win32.in
configure.ac

This adds a new "nop" driver that does nothing. This can be selected at runtime either with the COGL_DRIVER=nop environment variable or by passing COGL_DRIVER_NOP to cogl_renderer_set_driver() Adding the nop driver gives us a way to test workloads without any driver and hardware overheads which can help us understand how Cogl's state tracking performs in isolation. Having a nop driver can also serve as an shell/outline for creating other drivers later. Reviewed-by: Neil Roberts <neil@linux.intel.com> (cherry picked from commit 90587418233b6438290741d80aedf193ae660cad)
44 lines
1.3 KiB
C
44 lines
1.3 KiB
C
/*
|
|
* Cogl
|
|
*
|
|
* An object oriented GL/GLES Abstraction/Utility Layer
|
|
*
|
|
* Copyright (C) 2012 Intel Corporation.
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library. If not, see
|
|
* <http://www.gnu.org/licenses/>.
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
#include "config.h"
|
|
#endif
|
|
|
|
#include "cogl-types.h"
|
|
#include "cogl-framebuffer.h"
|
|
#include "cogl-attribute.h"
|
|
#include "cogl-attribute-private.h"
|
|
#include "cogl-attribute-nop-private.h"
|
|
|
|
void
|
|
_cogl_nop_flush_attributes_state (CoglFramebuffer *framebuffer,
|
|
CoglPipeline *pipeline,
|
|
CoglFlushLayerState *layers_state,
|
|
CoglDrawFlags flags,
|
|
CoglAttribute **attributes,
|
|
int n_attributes)
|
|
{
|
|
}
|