| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "cc/layers/texture_layer.h" | 5 #include "cc/layers/texture_layer.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "cc/layers/texture_layer_client.h" | 10 #include "cc/layers/texture_layer_client.h" |
| (...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 699 } | 699 } |
| 700 | 700 |
| 701 virtual unsigned PrepareTexture(ResourceUpdateQueue* queue) OVERRIDE { | 701 virtual unsigned PrepareTexture(ResourceUpdateQueue* queue) OVERRIDE { |
| 702 return texture_; | 702 return texture_; |
| 703 } | 703 } |
| 704 | 704 |
| 705 virtual WebKit::WebGraphicsContext3D* Context3d() OVERRIDE { | 705 virtual WebKit::WebGraphicsContext3D* Context3d() OVERRIDE { |
| 706 return context_; | 706 return context_; |
| 707 } | 707 } |
| 708 | 708 |
| 709 virtual bool PrepareTextureMailbox(cc::TextureMailbox* mailbox) OVERRIDE { | 709 virtual bool PrepareTextureMailbox( |
| 710 cc::TextureMailbox* mailbox, bool use_shared_memory) OVERRIDE { |
| 710 return false; | 711 return false; |
| 711 } | 712 } |
| 712 | 713 |
| 713 virtual void SetupTree() OVERRIDE { | 714 virtual void SetupTree() OVERRIDE { |
| 714 scoped_refptr<Layer> root = Layer::Create(); | 715 scoped_refptr<Layer> root = Layer::Create(); |
| 715 root->SetBounds(gfx::Size(10, 10)); | 716 root->SetBounds(gfx::Size(10, 10)); |
| 716 root->SetAnchorPoint(gfx::PointF()); | 717 root->SetAnchorPoint(gfx::PointF()); |
| 717 root->SetIsDrawable(true); | 718 root->SetIsDrawable(true); |
| 718 | 719 |
| 719 texture_layer_ = TextureLayer::Create(this); | 720 texture_layer_ = TextureLayer::Create(this); |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 788 base::Lock lock_; | 789 base::Lock lock_; |
| 789 unsigned expected_used_textures_on_commit_; | 790 unsigned expected_used_textures_on_commit_; |
| 790 }; | 791 }; |
| 791 | 792 |
| 792 // The TextureLayerClient does not use mailboxes, so can't use a delegating | 793 // The TextureLayerClient does not use mailboxes, so can't use a delegating |
| 793 // renderer. | 794 // renderer. |
| 794 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F(TextureLayerClientTest); | 795 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F(TextureLayerClientTest); |
| 795 | 796 |
| 796 } // namespace | 797 } // namespace |
| 797 } // namespace cc | 798 } // namespace cc |
| OLD | NEW |