summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/service/gles2_cmd_decoder.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gpu/command_buffer/service/gles2_cmd_decoder.cc')
-rw-r--r--gpu/command_buffer/service/gles2_cmd_decoder.cc15
1 files changed, 1 insertions, 14 deletions
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc
index 2d1d90a..f69be1d 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
@@ -578,7 +578,6 @@ class GLES2DecoderImpl : public GLES2Decoder, public ErrorStateClient {
const std::vector<int32_t>& attribs) override;
void Destroy(bool have_context) override;
void SetSurface(const scoped_refptr<gfx::GLSurface>& surface) override;
- void ReleaseSurface() override;
void ProduceFrontBuffer(const Mailbox& mailbox) override;
bool ResizeOffscreenFrameBuffer(const gfx::Size& size) override;
void UpdateParentTextureInfo();
@@ -3605,7 +3604,6 @@ void GLES2DecoderImpl::DeleteSamplersHelper(
// } // anonymous namespace
bool GLES2DecoderImpl::MakeCurrent() {
- DCHECK(surface_);
if (!context_.get())
return false;
@@ -4163,22 +4161,11 @@ void GLES2DecoderImpl::Destroy(bool have_context) {
void GLES2DecoderImpl::SetSurface(
const scoped_refptr<gfx::GLSurface>& surface) {
DCHECK(context_->IsCurrent(NULL));
- DCHECK(surface);
+ DCHECK(surface_.get());
surface_ = surface;
RestoreCurrentFramebufferBindings();
}
-void GLES2DecoderImpl::ReleaseSurface() {
- if (!context_.get())
- return;
- if (WasContextLost()) {
- DLOG(ERROR) << " GLES2DecoderImpl: Trying to release lost context.";
- return;
- }
- context_->ReleaseCurrent(surface_.get());
- surface_ = nullptr;
-}
-
void GLES2DecoderImpl::ProduceFrontBuffer(const Mailbox& mailbox) {
if (!offscreen_saved_color_texture_.get()) {
LOG(ERROR) << "Called ProduceFrontBuffer on a non-offscreen context";