OLD | NEW |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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 "gpu/command_buffer/service/gles2_cmd_decoder_passthrough.h" | 5 #include "gpu/command_buffer/service/gles2_cmd_decoder_passthrough.h" |
6 | 6 |
7 namespace gpu { | 7 namespace gpu { |
8 namespace gles2 { | 8 namespace gles2 { |
9 | 9 |
10 GLES2DecoderPassthroughImpl::GLES2DecoderPassthroughImpl(ContextGroup* group) | 10 GLES2DecoderPassthroughImpl::GLES2DecoderPassthroughImpl(ContextGroup* group) |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 } | 136 } |
137 context_->ReleaseCurrent(surface_.get()); | 137 context_->ReleaseCurrent(surface_.get()); |
138 surface_ = nullptr; | 138 surface_ = nullptr; |
139 } | 139 } |
140 | 140 |
141 void GLES2DecoderPassthroughImpl::TakeFrontBuffer(const Mailbox& mailbox) {} | 141 void GLES2DecoderPassthroughImpl::TakeFrontBuffer(const Mailbox& mailbox) {} |
142 | 142 |
143 void GLES2DecoderPassthroughImpl::ReturnFrontBuffer(const Mailbox& mailbox, | 143 void GLES2DecoderPassthroughImpl::ReturnFrontBuffer(const Mailbox& mailbox, |
144 bool is_lost) {} | 144 bool is_lost) {} |
145 | 145 |
146 bool GLES2DecoderPassthroughImpl::ResizeOffscreenFrameBuffer( | 146 bool GLES2DecoderPassthroughImpl::ResizeOffscreenFramebuffer( |
147 const gfx::Size& size) { | 147 const gfx::Size& size) { |
148 return true; | 148 return true; |
149 } | 149 } |
150 | 150 |
151 bool GLES2DecoderPassthroughImpl::MakeCurrent() { | 151 bool GLES2DecoderPassthroughImpl::MakeCurrent() { |
152 if (!context_.get()) | 152 if (!context_.get()) |
153 return false; | 153 return false; |
154 | 154 |
155 if (!context_->MakeCurrent(surface_.get())) { | 155 if (!context_->MakeCurrent(surface_.get())) { |
156 LOG(ERROR) << " GLES2DecoderImpl: Context lost during MakeCurrent."; | 156 LOG(ERROR) << " GLES2DecoderImpl: Context lost during MakeCurrent."; |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 }, /* NOLINT */ | 382 }, /* NOLINT */ |
383 | 383 |
384 const GLES2DecoderPassthroughImpl::CommandInfo | 384 const GLES2DecoderPassthroughImpl::CommandInfo |
385 GLES2DecoderPassthroughImpl::command_info[] = { | 385 GLES2DecoderPassthroughImpl::command_info[] = { |
386 GLES2_COMMAND_LIST(GLES2_CMD_OP)}; | 386 GLES2_COMMAND_LIST(GLES2_CMD_OP)}; |
387 | 387 |
388 #undef GLES2_CMD_OP | 388 #undef GLES2_CMD_OP |
389 | 389 |
390 } // namespace gles2 | 390 } // namespace gles2 |
391 } // namespace gpu | 391 } // namespace gpu |
OLD | NEW |