diff options
author | ericrk <ericrk@chromium.org> | 2015-02-19 17:39:38 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-02-20 01:40:18 +0000 |
commit | 7c0309998c053b656951483fa6177512efa3014a (patch) | |
tree | d36f609316e128a13a946f0609362e75fe261c0f /cc/output/direct_renderer.cc | |
parent | 8fe2fe9afd2d94f6cd814cd55900460ad11da26a (diff) | |
download | chromium_src-7c0309998c053b656951483fa6177512efa3014a.zip chromium_src-7c0309998c053b656951483fa6177512efa3014a.tar.gz chromium_src-7c0309998c053b656951483fa6177512efa3014a.tar.bz2 |
Fix Enum Style Throughout CC.
Currently CC does not always follow the chromium C++ style guidelines, sometimes using:
enum EnumName {
EnumNameValue1,
EnumNameValue2,
... etc ...
};
This change converts these enums to use:
enum EnumName {
ENUM_NAME_VALUE_1,
ENUM_NAME_VALUE_2,
... etc ...
};
This change also converts a few enums from using a NUM_ELEMENTS value to
using a LAST_ELEMENT value, which works better with switch statements.
R=danakj@chromium.org
Review URL: https://codereview.chromium.org/935213002
Cr-Commit-Position: refs/heads/master@{#317211}
Diffstat (limited to 'cc/output/direct_renderer.cc')
-rw-r--r-- | cc/output/direct_renderer.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/output/direct_renderer.cc b/cc/output/direct_renderer.cc index 9fbd4a5..5867fce 100644 --- a/cc/output/direct_renderer.cc +++ b/cc/output/direct_renderer.cc @@ -409,7 +409,7 @@ bool DirectRenderer::UseRenderPass(DrawingFrame* frame, enlarge_pass_texture_amount_.y()); if (!texture->id()) texture->Allocate( - size, ResourceProvider::TextureHintImmutableFramebuffer, RGBA_8888); + size, ResourceProvider::TEXTURE_HINT_IMMUTABLE_FRAMEBUFFER, RGBA_8888); DCHECK(texture->id()); return BindFramebufferToTexture(frame, texture, render_pass->output_rect); |