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

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

Issue 2547813002: Remove WebGLObject maps from WebGLRenderingContextBase and WebGLContextGroup. (Closed)
Patch Set: Fixed WebGLContextObject::validate. Made WebGLExtension non-finalized. Created 4 years 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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google 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 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 14 matching lines...) Expand all
25 25
26 #include "modules/webgl/WebGLLoseContext.h" 26 #include "modules/webgl/WebGLLoseContext.h"
27 27
28 #include "modules/webgl/WebGLRenderingContextBase.h" 28 #include "modules/webgl/WebGLRenderingContextBase.h"
29 29
30 namespace blink { 30 namespace blink {
31 31
32 WebGLLoseContext::WebGLLoseContext(WebGLRenderingContextBase* context) 32 WebGLLoseContext::WebGLLoseContext(WebGLRenderingContextBase* context)
33 : WebGLExtension(context) {} 33 : WebGLExtension(context) {}
34 34
35 WebGLLoseContext::~WebGLLoseContext() {}
36
37 void WebGLLoseContext::lose(bool force) { 35 void WebGLLoseContext::lose(bool force) {
38 if (force) 36 if (force)
39 WebGLExtension::lose(true); 37 WebGLExtension::lose(true);
40 } 38 }
41 39
42 WebGLExtensionName WebGLLoseContext::name() const { 40 WebGLExtensionName WebGLLoseContext::name() const {
43 return WebGLLoseContextName; 41 return WebGLLoseContextName;
44 } 42 }
45 43
46 WebGLLoseContext* WebGLLoseContext::create(WebGLRenderingContextBase* context) { 44 WebGLLoseContext* WebGLLoseContext::create(WebGLRenderingContextBase* context) {
(...skipping 17 matching lines...) Expand all
64 62
65 bool WebGLLoseContext::supported(WebGLRenderingContextBase*) { 63 bool WebGLLoseContext::supported(WebGLRenderingContextBase*) {
66 return true; 64 return true;
67 } 65 }
68 66
69 const char* WebGLLoseContext::extensionName() { 67 const char* WebGLLoseContext::extensionName() {
70 return "WEBGL_lose_context"; 68 return "WEBGL_lose_context";
71 } 69 }
72 70
73 } // namespace blink 71 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698