summaryrefslogtreecommitdiffstats
path: root/ppapi
diff options
context:
space:
mode:
authorjbauman@chromium.org <jbauman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-05 03:46:54 +0000
committerjbauman@chromium.org <jbauman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-05 03:46:54 +0000
commit483f989279759362e53cfecf37038199123a1456 (patch)
treec09e8fd8579edcf6251bbacac263bb5effbf7675 /ppapi
parentd483e995451b6e850fb5394d12ddb7a48bb7bad8 (diff)
downloadchromium_src-483f989279759362e53cfecf37038199123a1456.zip
chromium_src-483f989279759362e53cfecf37038199123a1456.tar.gz
chromium_src-483f989279759362e53cfecf37038199123a1456.tar.bz2
Allow pepper plugins to request the integrated GPU.
This will allow Flash (or others) to reduce power consumption. BUG=153643 Review URL: https://chromiumcodereview.appspot.com/11044026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160318 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi')
-rw-r--r--ppapi/api/pp_graphics_3d.idl16
-rw-r--r--ppapi/c/pp_graphics_3d.h20
2 files changed, 32 insertions, 4 deletions
diff --git a/ppapi/api/pp_graphics_3d.idl b/ppapi/api/pp_graphics_3d.idl
index 09b0cf6..86dc6ae 100644
--- a/ppapi/api/pp_graphics_3d.idl
+++ b/ppapi/api/pp_graphics_3d.idl
@@ -65,5 +65,19 @@
/**
* Indicates that color buffer contents may be destroyed or changed.
*/
- PP_GRAPHICS3DATTRIB_BUFFER_DESTROYED = 0x3095
+ PP_GRAPHICS3DATTRIB_BUFFER_DESTROYED = 0x3095,
+ /**
+ * Specifies whether the context is intended to be low-power or
+ * high-performance. The initial value is
+ * PP_GRAPHICS3DATTRIB_GPU_PREFERENCE_PERFORMANCE.
+ */
+ PP_GRAPHICS3DATTRIB_GPU_PREFERENCE = 0x11000,
+ /**
+ * The context should be low-power, and may be created on an integrated gpu.
+ */
+ PP_GRAPHICS3DATTRIB_GPU_PREFERENCE_LOW_POWER = 0x11001,
+ /**
+ * The context may be high-power and may be created on a discrete gpu.
+ */
+ PP_GRAPHICS3DATTRIB_GPU_PREFERENCE_PERFORMANCE = 0x11002
};
diff --git a/ppapi/c/pp_graphics_3d.h b/ppapi/c/pp_graphics_3d.h
index db142f1..77b20aa 100644
--- a/ppapi/c/pp_graphics_3d.h
+++ b/ppapi/c/pp_graphics_3d.h
@@ -1,9 +1,9 @@
-/* Copyright (c) 2011 The Chromium Authors. All rights reserved.
+/* Copyright (c) 2012 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.
*/
-/* From pp_graphics_3d.idl modified Tue Nov 29 12:56:32 2011. */
+/* From pp_graphics_3d.idl modified Wed Oct 3 15:55:01 2012. */
#ifndef PPAPI_C_PP_GRAPHICS_3D_H_
#define PPAPI_C_PP_GRAPHICS_3D_H_
@@ -78,7 +78,21 @@ typedef enum {
/**
* Indicates that color buffer contents may be destroyed or changed.
*/
- PP_GRAPHICS3DATTRIB_BUFFER_DESTROYED = 0x3095
+ PP_GRAPHICS3DATTRIB_BUFFER_DESTROYED = 0x3095,
+ /**
+ * Specifies whether the context is intended to be low-power or
+ * high-performance. The initial value is
+ * PP_GRAPHICS3DATTRIB_GPU_PREFERENCE_PERFORMANCE.
+ */
+ PP_GRAPHICS3DATTRIB_GPU_PREFERENCE = 0x11000,
+ /**
+ * The context should be low-power, and may be created on an integrated gpu.
+ */
+ PP_GRAPHICS3DATTRIB_GPU_PREFERENCE_LOW_POWER = 0x11001,
+ /**
+ * The context may be high-power and may be created on a discrete gpu.
+ */
+ PP_GRAPHICS3DATTRIB_GPU_PREFERENCE_PERFORMANCE = 0x11002
} PP_Graphics3DAttrib;
PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_Graphics3DAttrib, 4);
/**