Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(106)

Side by Side Diff: cc/layers/texture_layer_unittest.cc

Issue 17859002: Allow WebExternalTextureLayers to receive a bitmap along with a mailbox (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/layers/texture_layer_client.h ('k') | cc/output/software_renderer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « cc/layers/texture_layer_client.h ('k') | cc/output/software_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698