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

Side by Side Diff: webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc

Issue 7980049: Add std prefix for find(). (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #if defined(ENABLE_GPU) 5 #if defined(ENABLE_GPU)
6 6
7 #include "webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h" 7 #include "webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h"
8 8
9 #include <GLES2/gl2.h> 9 #include <GLES2/gl2.h>
10 #ifndef GL_GLEXT_PROTOTYPES 10 #ifndef GL_GLEXT_PROTOTYPES
(...skipping 819 matching lines...) Expand 10 before | Expand all | Expand 10 after
830 } 830 }
831 831
832 bool WebGraphicsContext3DInProcessCommandBufferImpl::readBackFramebuffer( 832 bool WebGraphicsContext3DInProcessCommandBufferImpl::readBackFramebuffer(
833 unsigned char* pixels, 833 unsigned char* pixels,
834 size_t buffer_size) { 834 size_t buffer_size) {
835 return readBackFramebuffer(pixels, buffer_size, 0, width(), height()); 835 return readBackFramebuffer(pixels, buffer_size, 0, width(), height());
836 } 836 }
837 837
838 void WebGraphicsContext3DInProcessCommandBufferImpl::synthesizeGLError( 838 void WebGraphicsContext3DInProcessCommandBufferImpl::synthesizeGLError(
839 WGC3Denum error) { 839 WGC3Denum error) {
840 if (find(synthetic_errors_.begin(), synthetic_errors_.end(), error) == 840 if (std::find(synthetic_errors_.begin(), synthetic_errors_.end(), error) ==
841 synthetic_errors_.end()) { 841 synthetic_errors_.end()) {
842 synthetic_errors_.push_back(error); 842 synthetic_errors_.push_back(error);
843 } 843 }
844 } 844 }
845 845
846 void* WebGraphicsContext3DInProcessCommandBufferImpl::mapBufferSubDataCHROMIUM( 846 void* WebGraphicsContext3DInProcessCommandBufferImpl::mapBufferSubDataCHROMIUM(
847 WGC3Denum target, 847 WGC3Denum target,
848 WGC3Dintptr offset, 848 WGC3Dintptr offset,
849 WGC3Dsizeiptr size, 849 WGC3Dsizeiptr size,
850 WGC3Denum access) { 850 WGC3Denum access) {
(...skipping 750 matching lines...) Expand 10 before | Expand all | Expand 10 after
1601 context_lost_reason_ = GL_UNKNOWN_CONTEXT_RESET_ARB; 1601 context_lost_reason_ = GL_UNKNOWN_CONTEXT_RESET_ARB;
1602 if (context_lost_callback_) { 1602 if (context_lost_callback_) {
1603 context_lost_callback_->onContextLost(); 1603 context_lost_callback_->onContextLost();
1604 } 1604 }
1605 } 1605 }
1606 1606
1607 } // namespace gpu 1607 } // namespace gpu
1608 } // namespace webkit 1608 } // namespace webkit
1609 1609
1610 #endif // defined(ENABLE_GPU) 1610 #endif // defined(ENABLE_GPU)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698