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

Side by Side Diff: third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp

Issue 2123183002: Move crossThreadBind() from platform/ to wtf/ Base URL: https://chromium.googlesource.com/chromium/src.git@TRV_WTFCrossThreadCopier
Patch Set: Rebase Created 4 years, 5 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
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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 #include "modules/webgl/WebGLFramebuffer.h" 76 #include "modules/webgl/WebGLFramebuffer.h"
77 #include "modules/webgl/WebGLLoseContext.h" 77 #include "modules/webgl/WebGLLoseContext.h"
78 #include "modules/webgl/WebGLProgram.h" 78 #include "modules/webgl/WebGLProgram.h"
79 #include "modules/webgl/WebGLRenderbuffer.h" 79 #include "modules/webgl/WebGLRenderbuffer.h"
80 #include "modules/webgl/WebGLShader.h" 80 #include "modules/webgl/WebGLShader.h"
81 #include "modules/webgl/WebGLShaderPrecisionFormat.h" 81 #include "modules/webgl/WebGLShaderPrecisionFormat.h"
82 #include "modules/webgl/WebGLUniformLocation.h" 82 #include "modules/webgl/WebGLUniformLocation.h"
83 #include "modules/webgl/WebGLVertexArrayObject.h" 83 #include "modules/webgl/WebGLVertexArrayObject.h"
84 #include "modules/webgl/WebGLVertexArrayObjectOES.h" 84 #include "modules/webgl/WebGLVertexArrayObjectOES.h"
85 #include "platform/CheckedInt.h" 85 #include "platform/CheckedInt.h"
86 #include "platform/CrossThreadFunctional.h"
87 #include "platform/RuntimeEnabledFeatures.h" 86 #include "platform/RuntimeEnabledFeatures.h"
88 #include "platform/WaitableEvent.h" 87 #include "platform/WaitableEvent.h"
89 #include "platform/geometry/IntSize.h" 88 #include "platform/geometry/IntSize.h"
90 #include "platform/graphics/GraphicsContext.h" 89 #include "platform/graphics/GraphicsContext.h"
91 #include "platform/graphics/UnacceleratedImageBufferSurface.h" 90 #include "platform/graphics/UnacceleratedImageBufferSurface.h"
92 #include "platform/graphics/gpu/AcceleratedImageBufferSurface.h" 91 #include "platform/graphics/gpu/AcceleratedImageBufferSurface.h"
93 #include "public/platform/Platform.h" 92 #include "public/platform/Platform.h"
94 #include "public/platform/functional/WebFunction.h" 93 #include "public/platform/functional/WebFunction.h"
95 #include "wtf/Functional.h" 94 #include "wtf/Functional.h"
96 #include "wtf/PtrUtil.h" 95 #include "wtf/PtrUtil.h"
(...skipping 6374 matching lines...) Expand 10 before | Expand all | Expand 10 after
6471 contextGL()->PixelStorei(GL_UNPACK_ALIGNMENT, 1); 6470 contextGL()->PixelStorei(GL_UNPACK_ALIGNMENT, 1);
6472 } 6471 }
6473 6472
6474 void WebGLRenderingContextBase::restoreUnpackParameters() 6473 void WebGLRenderingContextBase::restoreUnpackParameters()
6475 { 6474 {
6476 if (m_unpackAlignment != 1) 6475 if (m_unpackAlignment != 1)
6477 contextGL()->PixelStorei(GL_UNPACK_ALIGNMENT, m_unpackAlignment); 6476 contextGL()->PixelStorei(GL_UNPACK_ALIGNMENT, m_unpackAlignment);
6478 } 6477 }
6479 6478
6480 } // namespace blink 6479 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698