| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "gpu/blink/webgraphicscontext3d_impl.h" | |
| 6 | |
| 7 #include <stdint.h> | |
| 8 | |
| 9 #include "base/atomicops.h" | |
| 10 #include "base/lazy_instance.h" | |
| 11 #include "base/logging.h" | |
| 12 #include "base/macros.h" | |
| 13 #include "base/sys_info.h" | |
| 14 #include "gpu/GLES2/gl2extchromium.h" | |
| 15 #include "gpu/command_buffer/client/gles2_implementation.h" | |
| 16 #include "gpu/command_buffer/client/gles2_lib.h" | |
| 17 #include "gpu/command_buffer/common/gles2_cmd_utils.h" | |
| 18 #include "gpu/command_buffer/common/sync_token.h" | |
| 19 #include "gpu/skia_bindings/gl_bindings_skia_cmd_buffer.h" | |
| 20 | |
| 21 #include "third_party/khronos/GLES2/gl2.h" | |
| 22 #ifndef GL_GLEXT_PROTOTYPES | |
| 23 #define GL_GLEXT_PROTOTYPES 1 | |
| 24 #endif | |
| 25 #include "third_party/khronos/GLES2/gl2ext.h" | |
| 26 | |
| 27 namespace gpu_blink { | |
| 28 | |
| 29 WebGraphicsContext3DImpl::WebGraphicsContext3DImpl() | |
| 30 : initialized_(false), | |
| 31 initialize_failed_(false), | |
| 32 context_lost_callback_(0), | |
| 33 gl_(NULL) {} | |
| 34 | |
| 35 WebGraphicsContext3DImpl::~WebGraphicsContext3DImpl() { | |
| 36 | |
| 37 } | |
| 38 | |
| 39 void WebGraphicsContext3DImpl::setContextLostCallback( | |
| 40 WebGraphicsContext3D::WebGraphicsContextLostCallback* cb) { | |
| 41 context_lost_callback_ = cb; | |
| 42 } | |
| 43 | |
| 44 } // namespace gpu_blink | |
| OLD | NEW |