Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 "content/common/gpu/texture_image_transport_surface.h" | 5 #include "content/common/gpu/texture_image_transport_surface.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 161 } | 161 } |
| 162 | 162 |
| 163 void* TextureImageTransportSurface::GetDisplay() { | 163 void* TextureImageTransportSurface::GetDisplay() { |
| 164 return surface_.get() ? surface_->GetDisplay() : NULL; | 164 return surface_.get() ? surface_->GetDisplay() : NULL; |
| 165 } | 165 } |
| 166 | 166 |
| 167 void* TextureImageTransportSurface::GetConfig() { | 167 void* TextureImageTransportSurface::GetConfig() { |
| 168 return surface_.get() ? surface_->GetConfig() : NULL; | 168 return surface_.get() ? surface_->GetConfig() : NULL; |
| 169 } | 169 } |
| 170 | 170 |
| 171 void TextureImageTransportSurface::OnResize(gfx::Size size) { | 171 void TextureImageTransportSurface::OnResize(gfx::Size size, |
| 172 float scale_factor) { | |
|
piman
2013/05/22 19:41:14
I think we want to fix the issue on Aura as well.
ccameron
2013/05/22 20:00:06
Done.
| |
| 172 current_size_ = size; | 173 current_size_ = size; |
| 173 CreateBackTexture(); | 174 CreateBackTexture(); |
| 174 } | 175 } |
| 175 | 176 |
| 176 void TextureImageTransportSurface::OnWillDestroyStub() { | 177 void TextureImageTransportSurface::OnWillDestroyStub() { |
| 177 helper_->stub()->RemoveDestructionObserver(this); | 178 helper_->stub()->RemoveDestructionObserver(this); |
| 178 | 179 |
| 179 GpuHostMsg_AcceleratedSurfaceRelease_Params params; | 180 GpuHostMsg_AcceleratedSurfaceRelease_Params params; |
| 180 helper_->SendAcceleratedSurfaceRelease(params); | 181 helper_->SendAcceleratedSurfaceRelease(params); |
| 181 | 182 |
| (...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 494 GL_TEXTURE_2D, | 495 GL_TEXTURE_2D, |
| 495 mailbox_name_, | 496 mailbox_name_, |
| 496 backbuffer_.release(), | 497 backbuffer_.release(), |
| 497 NULL); | 498 NULL); |
| 498 DCHECK(success); | 499 DCHECK(success); |
| 499 mailbox_name_ = MailboxName(); | 500 mailbox_name_ = MailboxName(); |
| 500 backbuffer_.reset(CreateTextureDefinition(gfx::Size(), 0)); | 501 backbuffer_.reset(CreateTextureDefinition(gfx::Size(), 0)); |
| 501 } | 502 } |
| 502 | 503 |
| 503 } // namespace content | 504 } // namespace content |
| OLD | NEW |