OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/gles2/gles2_context.h" | 5 #include "mojo/gles2/gles2_context.h" |
6 | 6 |
7 #include "gpu/command_buffer/client/gles2_cmd_helper.h" | 7 #include "gpu/command_buffer/client/gles2_cmd_helper.h" |
8 #include "gpu/command_buffer/client/gles2_implementation.h" | 8 #include "gpu/command_buffer/client/gles2_implementation.h" |
9 #include "gpu/command_buffer/client/transfer_buffer.h" | 9 #include "gpu/command_buffer/client/transfer_buffer.h" |
| 10 #include "mojo/public/c/gles2/gles2.h" |
10 #include "mojo/public/cpp/system/core.h" | 11 #include "mojo/public/cpp/system/core.h" |
11 #include "mojo/public/gles2/gles2.h" | |
12 | 12 |
13 namespace mojo { | 13 namespace mojo { |
14 namespace gles2 { | 14 namespace gles2 { |
15 | 15 |
16 namespace { | 16 namespace { |
17 const size_t kDefaultCommandBufferSize = 1024 * 1024; | 17 const size_t kDefaultCommandBufferSize = 1024 * 1024; |
18 const size_t kDefaultStartTransferBufferSize = 1 * 1024 * 1024; | 18 const size_t kDefaultStartTransferBufferSize = 1 * 1024 * 1024; |
19 const size_t kDefaultMinTransferBufferSize = 1 * 256 * 1024; | 19 const size_t kDefaultMinTransferBufferSize = 1 * 256 * 1024; |
20 const size_t kDefaultMaxTransferBufferSize = 16 * 1024 * 1024; | 20 const size_t kDefaultMaxTransferBufferSize = 16 * 1024 * 1024; |
21 } | 21 } |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 void GLES2Context::CancelAnimationFrames() { | 59 void GLES2Context::CancelAnimationFrames() { |
60 command_buffer_.CancelAnimationFrames(); | 60 command_buffer_.CancelAnimationFrames(); |
61 } | 61 } |
62 | 62 |
63 void GLES2Context::ContextLost() { lost_callback_(closure_); } | 63 void GLES2Context::ContextLost() { lost_callback_(closure_); } |
64 | 64 |
65 void GLES2Context::DrawAnimationFrame() { animation_callback_(closure_); } | 65 void GLES2Context::DrawAnimationFrame() { animation_callback_(closure_); } |
66 | 66 |
67 } // namespace gles2 | 67 } // namespace gles2 |
68 } // namespace mojo | 68 } // namespace mojo |
OLD | NEW |