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

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

Issue 1815803003: Move simple methods [T-Z] from WebGraphicsContext3D to GLES2Interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@simples-fplus
Patch Set: simples-tplus: fixed Created 4 years, 9 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 WebGLRenderbuffer::WebGLRenderbuffer(WebGLRenderingContextBase* ctx) 43 WebGLRenderbuffer::WebGLRenderbuffer(WebGLRenderingContextBase* ctx)
44 : WebGLSharedPlatform3DObject(ctx) 44 : WebGLSharedPlatform3DObject(ctx)
45 , m_internalFormat(GL_RGBA4) 45 , m_internalFormat(GL_RGBA4)
46 , m_width(0) 46 , m_width(0)
47 , m_height(0) 47 , m_height(0)
48 , m_hasEverBeenBound(false) 48 , m_hasEverBeenBound(false)
49 { 49 {
50 setObject(ctx->webContext()->createRenderbuffer()); 50 setObject(ctx->webContext()->createRenderbuffer());
51 } 51 }
52 52
53 void WebGLRenderbuffer::deleteObjectImpl(WebGraphicsContext3D* context3d) 53 void WebGLRenderbuffer::deleteObjectImpl(WebGraphicsContext3D* context3d, gpu::g les2::GLES2Interface* gl)
54 { 54 {
55 context3d->deleteRenderbuffer(m_object); 55 context3d->deleteRenderbuffer(m_object);
56 m_object = 0; 56 m_object = 0;
57 } 57 }
58 58
59 DEFINE_TRACE(WebGLRenderbuffer) 59 DEFINE_TRACE(WebGLRenderbuffer)
60 { 60 {
61 WebGLSharedPlatform3DObject::trace(visitor); 61 WebGLSharedPlatform3DObject::trace(visitor);
62 } 62 }
63 63
64 } // namespace blink 64 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698