Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(117)

Side by Side Diff: Source/core/html/canvas/WebGLRenderingContext.cpp

Issue 47623002: Fix more warnings on linux (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix RenderImage.cpp. Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/dom/QualifiedName.cpp ('k') | Source/core/platform/animation/TimingFunction.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 80
81 #include "wtf/OwnPtr.h" 81 #include "wtf/OwnPtr.h"
82 #include "wtf/PassOwnPtr.h" 82 #include "wtf/PassOwnPtr.h"
83 #include "wtf/Uint32Array.h" 83 #include "wtf/Uint32Array.h"
84 #include "wtf/text/StringBuilder.h" 84 #include "wtf/text/StringBuilder.h"
85 85
86 namespace WebCore { 86 namespace WebCore {
87 87
88 const double secondsBetweenRestoreAttempts = 1.0; 88 const double secondsBetweenRestoreAttempts = 1.0;
89 const int maxGLErrorsAllowedToConsole = 256; 89 const int maxGLErrorsAllowedToConsole = 256;
90 const int maxGLActiveContexts = 16; 90 const unsigned maxGLActiveContexts = 16;
91 91
92 Vector<WebGLRenderingContext*>& WebGLRenderingContext::activeContexts() 92 Vector<WebGLRenderingContext*>& WebGLRenderingContext::activeContexts()
93 { 93 {
94 DEFINE_STATIC_LOCAL(Vector<WebGLRenderingContext*>, activeContexts, ()); 94 DEFINE_STATIC_LOCAL(Vector<WebGLRenderingContext*>, activeContexts, ());
95 return activeContexts; 95 return activeContexts;
96 } 96 }
97 97
98 Vector<WebGLRenderingContext*>& WebGLRenderingContext::forciblyEvictedContexts() 98 Vector<WebGLRenderingContext*>& WebGLRenderingContext::forciblyEvictedContexts()
99 { 99 {
100 DEFINE_STATIC_LOCAL(Vector<WebGLRenderingContext*>, forciblyEvictedContexts, ()); 100 DEFINE_STATIC_LOCAL(Vector<WebGLRenderingContext*>, forciblyEvictedContexts, ());
(...skipping 5514 matching lines...) Expand 10 before | Expand all | Expand 10 after
5615 if (m_textureUnits[i].m_texture2DBinding 5615 if (m_textureUnits[i].m_texture2DBinding
5616 || m_textureUnits[i].m_textureCubeMapBinding) { 5616 || m_textureUnits[i].m_textureCubeMapBinding) {
5617 m_onePlusMaxNonDefaultTextureUnit = i + 1; 5617 m_onePlusMaxNonDefaultTextureUnit = i + 1;
5618 return; 5618 return;
5619 } 5619 }
5620 } 5620 }
5621 m_onePlusMaxNonDefaultTextureUnit = 0; 5621 m_onePlusMaxNonDefaultTextureUnit = 0;
5622 } 5622 }
5623 5623
5624 } // namespace WebCore 5624 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/dom/QualifiedName.cpp ('k') | Source/core/platform/animation/TimingFunction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698