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

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

Issue 13529026: Removing a bunch of unused platform code. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix whitespace and compiler error on Mac. Created 7 years, 8 months 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 | Annotate | Revision Log
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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 #include "WebGLShaderPrecisionFormat.h" 74 #include "WebGLShaderPrecisionFormat.h"
75 #include "WebGLTexture.h" 75 #include "WebGLTexture.h"
76 #include "WebGLUniformLocation.h" 76 #include "WebGLUniformLocation.h"
77 77
78 #include <wtf/OwnArrayPtr.h> 78 #include <wtf/OwnArrayPtr.h>
79 #include <wtf/PassOwnArrayPtr.h> 79 #include <wtf/PassOwnArrayPtr.h>
80 #include <wtf/Uint16Array.h> 80 #include <wtf/Uint16Array.h>
81 #include <wtf/Uint32Array.h> 81 #include <wtf/Uint32Array.h>
82 #include <wtf/text/StringBuilder.h> 82 #include <wtf/text/StringBuilder.h>
83 83
84 #if PLATFORM(QT)
85 #undef emit
86 #endif
87
88 namespace WebCore { 84 namespace WebCore {
89 85
90 const double secondsBetweenRestoreAttempts = 1.0; 86 const double secondsBetweenRestoreAttempts = 1.0;
91 const int maxGLErrorsAllowedToConsole = 256; 87 const int maxGLErrorsAllowedToConsole = 256;
92 88
93 namespace { 89 namespace {
94 90
95 class ScopedDrawingBufferBinder { 91 class ScopedDrawingBufferBinder {
96 public: 92 public:
97 ScopedDrawingBufferBinder(DrawingBuffer* drawingBuffer, WebGLFramebuffer * framebufferBinding) 93 ScopedDrawingBufferBinder(DrawingBuffer* drawingBuffer, WebGLFramebuffer * framebufferBinding)
(...skipping 5967 matching lines...) Expand 10 before | Expand all | Expand 10 after
6065 if (!m_drawBuffersWebGLRequirementsChecked) { 6061 if (!m_drawBuffersWebGLRequirementsChecked) {
6066 m_drawBuffersWebGLRequirementsChecked = true; 6062 m_drawBuffersWebGLRequirementsChecked = true;
6067 m_drawBuffersSupported = EXTDrawBuffers::supported(this); 6063 m_drawBuffersSupported = EXTDrawBuffers::supported(this);
6068 } 6064 }
6069 return m_drawBuffersSupported; 6065 return m_drawBuffersSupported;
6070 } 6066 }
6071 6067
6072 } // namespace WebCore 6068 } // namespace WebCore
6073 6069
6074 #endif // ENABLE(WEBGL) 6070 #endif // ENABLE(WEBGL)
OLDNEW
« no previous file with comments | « Source/WebCore/html/canvas/WebGLContextGroup.cpp ('k') | Source/WebCore/loader/FTPDirectoryParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698