| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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 "config.h" | 5 #include "config.h" |
| 6 | 6 |
| 7 #include "cc/video_layer_impl.h" | 7 #include "cc/video_layer_impl.h" |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "cc/io_surface_draw_quad.h" | 10 #include "cc/io_surface_draw_quad.h" |
| (...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 411 void VideoLayerImpl::didLoseContext() | 411 void VideoLayerImpl::didLoseContext() |
| 412 { | 412 { |
| 413 freePlaneData(layerTreeHostImpl()->resourceProvider()); | 413 freePlaneData(layerTreeHostImpl()->resourceProvider()); |
| 414 } | 414 } |
| 415 | 415 |
| 416 void VideoLayerImpl::setNeedsRedraw() | 416 void VideoLayerImpl::setNeedsRedraw() |
| 417 { | 417 { |
| 418 layerTreeHostImpl()->setNeedsRedraw(); | 418 layerTreeHostImpl()->setNeedsRedraw(); |
| 419 } | 419 } |
| 420 | 420 |
| 421 void VideoLayerImpl::dumpLayerProperties(std::string* str, int indent) const | |
| 422 { | |
| 423 str->append(indentString(indent)); | |
| 424 str->append("video layer\n"); | |
| 425 LayerImpl::dumpLayerProperties(str, indent); | |
| 426 } | |
| 427 | |
| 428 const char* VideoLayerImpl::layerTypeAsString() const | 421 const char* VideoLayerImpl::layerTypeAsString() const |
| 429 { | 422 { |
| 430 return "VideoLayer"; | 423 return "VideoLayer"; |
| 431 } | 424 } |
| 432 | 425 |
| 433 } | 426 } |
| OLD | NEW |