OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "mojo/services/gles2/gles2_impl.h" | 5 #include "mojo/services/gles2/gles2_impl.h" |
6 | 6 |
| 7 #include <stdio.h> |
7 #include "base/bind.h" | 8 #include "base/bind.h" |
8 #include "gpu/command_buffer/client/gl_in_process_context.h" | 9 #include "gpu/command_buffer/client/gl_in_process_context.h" |
9 #include "gpu/command_buffer/client/gles2_implementation.h" | 10 #include "gpu/command_buffer/client/gles2_implementation.h" |
10 | 11 |
11 namespace mojo { | 12 namespace mojo { |
12 namespace services { | 13 namespace services { |
13 | 14 |
14 GLES2Impl::GLES2Impl(ScopedMessagePipeHandle client) | 15 GLES2Impl::GLES2Impl(ScopedMessagePipeHandle client) |
15 : client_(client.Pass()) { | 16 : client_(client.Pass()) { |
16 client_.SetPeer(this); | 17 client_.SetPeer(this); |
(...skipping 19 matching lines...) Expand all Loading... |
36 | 37 |
37 client_->DidCreateContext(encoded_gl, size.width(), size.height()); | 38 client_->DidCreateContext(encoded_gl, size.width(), size.height()); |
38 } | 39 } |
39 | 40 |
40 void GLES2Impl::OnGLContextLost() { | 41 void GLES2Impl::OnGLContextLost() { |
41 client_->ContextLost(); | 42 client_->ContextLost(); |
42 } | 43 } |
43 | 44 |
44 } // namespace services | 45 } // namespace services |
45 } // namespace mojo | 46 } // namespace mojo |
OLD | NEW |