summaryrefslogtreecommitdiffstats
path: root/chrome/common/render_messages.h
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-24 18:11:39 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-24 18:11:39 +0000
commit770dd8b8b1ee5adc67ed257e53d3f34c7e67b02e (patch)
treee0894895aa1152dd152459657f4e0de497195d51 /chrome/common/render_messages.h
parentd5fa6fd614049dcacb22ab9034eaf2b892a17e85 (diff)
downloadchromium_src-770dd8b8b1ee5adc67ed257e53d3f34c7e67b02e.zip
chromium_src-770dd8b8b1ee5adc67ed257e53d3f34c7e67b02e.tar.gz
chromium_src-770dd8b8b1ee5adc67ed257e53d3f34c7e67b02e.tar.bz2
Mac: Fix renderer idle cpu usage regression.
Since polling is required only for the preferred height and mac only needs preferred width, add a flag that specifies if the client is interested in width and/or height. This is a band-aid, the Real Fix is tracked in 44850. BUG=44494 TEST=Open chrome's task manager. Idle renderer processes should take close to 0 %cpu instead of ~1.5 before. Review URL: http://codereview.chromium.org/2145002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48056 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/render_messages.h')
-rw-r--r--chrome/common/render_messages.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/common/render_messages.h b/chrome/common/render_messages.h
index 065fde0..ce94e22 100644
--- a/chrome/common/render_messages.h
+++ b/chrome/common/render_messages.h
@@ -657,6 +657,15 @@ struct ViewMsg_ExtensionExtentsUpdated_Params {
std::vector< std::pair<std::string, ExtensionExtent> > extension_apps;
};
+// Values that may be OR'd together to form the 'flags' parameter of the
+// ViewMsg_EnablePreferredSizeChangedMode message.
+enum ViewHostMsg_EnablePreferredSizeChangedMode_Flags {
+ kPreferredSizeNothing,
+ kPreferredSizeWidth = 1 << 0,
+ // Requesting the height currently requires a polling loop in render_view.cc.
+ kPreferredSizeHeightThisIsSlow = 1 << 1,
+};
+
namespace IPC {
template <>