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

Side by Side Diff: Source/WebCore/html/canvas/WebGLContextGroup.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) 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2011 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 15 matching lines...) Expand all
26 #include "config.h" 26 #include "config.h"
27 27
28 #if ENABLE(WEBGL) 28 #if ENABLE(WEBGL)
29 29
30 #include "WebGLContextGroup.h" 30 #include "WebGLContextGroup.h"
31 31
32 #include "GraphicsContext3D.h" 32 #include "GraphicsContext3D.h"
33 #include "WebGLRenderingContext.h" 33 #include "WebGLRenderingContext.h"
34 #include "WebGLSharedObject.h" 34 #include "WebGLSharedObject.h"
35 35
36 #if PLATFORM(QT)
37 #undef emit
38 #endif
39
40 namespace WebCore { 36 namespace WebCore {
41 37
42 PassRefPtr<WebGLContextGroup> WebGLContextGroup::create() 38 PassRefPtr<WebGLContextGroup> WebGLContextGroup::create()
43 { 39 {
44 RefPtr<WebGLContextGroup> contextGroup = adoptRef(new WebGLContextGroup()); 40 RefPtr<WebGLContextGroup> contextGroup = adoptRef(new WebGLContextGroup());
45 return contextGroup.release(); 41 return contextGroup.release();
46 } 42 }
47 43
48 WebGLContextGroup::WebGLContextGroup() 44 WebGLContextGroup::WebGLContextGroup()
49 { 45 {
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 { 93 {
98 for (HashSet<WebGLRenderingContext*>::iterator it = m_contexts.begin(); it ! = m_contexts.end(); ++it) 94 for (HashSet<WebGLRenderingContext*>::iterator it = m_contexts.begin(); it ! = m_contexts.end(); ++it)
99 (*it)->loseContextImpl(mode); 95 (*it)->loseContextImpl(mode);
100 96
101 detachAndRemoveAllObjects(); 97 detachAndRemoveAllObjects();
102 } 98 }
103 99
104 } // namespace WebCore 100 } // namespace WebCore
105 101
106 #endif // ENABLE(WEBGL) 102 #endif // ENABLE(WEBGL)
OLDNEW
« no previous file with comments | « Source/WebCore/html/canvas/CanvasStyle.cpp ('k') | Source/WebCore/html/canvas/WebGLRenderingContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698