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

Side by Side Diff: cc/trees/layer_tree_host_unittest.cc

Issue 61553006: Rename WebKit namespace to blink (part 5) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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/trees/layer_tree_host_impl_unittest.cc ('k') | cc/trees/layer_tree_host_unittest_context.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 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 "cc/trees/layer_tree_host.h" 5 #include "cc/trees/layer_tree_host.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "base/synchronization/lock.h" 10 #include "base/synchronization/lock.h"
(...skipping 2781 matching lines...) Expand 10 before | Expand all | Expand 10 after
2792 2792
2793 SINGLE_THREAD_TEST_F(LayerTreeHostTestChangeLayerPropertiesInPaintContents); 2793 SINGLE_THREAD_TEST_F(LayerTreeHostTestChangeLayerPropertiesInPaintContents);
2794 2794
2795 class MockIOSurfaceWebGraphicsContext3D : public TestWebGraphicsContext3D { 2795 class MockIOSurfaceWebGraphicsContext3D : public TestWebGraphicsContext3D {
2796 public: 2796 public:
2797 MockIOSurfaceWebGraphicsContext3D() { 2797 MockIOSurfaceWebGraphicsContext3D() {
2798 test_capabilities_.iosurface = true; 2798 test_capabilities_.iosurface = true;
2799 test_capabilities_.texture_rectangle = true; 2799 test_capabilities_.texture_rectangle = true;
2800 } 2800 }
2801 2801
2802 virtual WebKit::WebGLId createTexture() OVERRIDE { 2802 virtual blink::WebGLId createTexture() OVERRIDE {
2803 return 1; 2803 return 1;
2804 } 2804 }
2805 2805
2806 MOCK_METHOD1(activeTexture, void(WebKit::WGC3Denum texture)); 2806 MOCK_METHOD1(activeTexture, void(blink::WGC3Denum texture));
2807 MOCK_METHOD2(bindTexture, void(WebKit::WGC3Denum target, 2807 MOCK_METHOD2(bindTexture, void(blink::WGC3Denum target,
2808 WebKit::WebGLId texture_id)); 2808 blink::WebGLId texture_id));
2809 MOCK_METHOD3(texParameteri, void(WebKit::WGC3Denum target, 2809 MOCK_METHOD3(texParameteri, void(blink::WGC3Denum target,
2810 WebKit::WGC3Denum pname, 2810 blink::WGC3Denum pname,
2811 WebKit::WGC3Dint param)); 2811 blink::WGC3Dint param));
2812 MOCK_METHOD5(texImageIOSurface2DCHROMIUM, void(WebKit::WGC3Denum target, 2812 MOCK_METHOD5(texImageIOSurface2DCHROMIUM, void(blink::WGC3Denum target,
2813 WebKit::WGC3Dint width, 2813 blink::WGC3Dint width,
2814 WebKit::WGC3Dint height, 2814 blink::WGC3Dint height,
2815 WebKit::WGC3Duint ioSurfaceId, 2815 blink::WGC3Duint ioSurfaceId,
2816 WebKit::WGC3Duint plane)); 2816 blink::WGC3Duint plane));
2817 MOCK_METHOD4(drawElements, void(WebKit::WGC3Denum mode, 2817 MOCK_METHOD4(drawElements, void(blink::WGC3Denum mode,
2818 WebKit::WGC3Dsizei count, 2818 blink::WGC3Dsizei count,
2819 WebKit::WGC3Denum type, 2819 blink::WGC3Denum type,
2820 WebKit::WGC3Dintptr offset)); 2820 blink::WGC3Dintptr offset));
2821 MOCK_METHOD1(deleteTexture, void(WebKit::WGC3Denum texture)); 2821 MOCK_METHOD1(deleteTexture, void(blink::WGC3Denum texture));
2822 }; 2822 };
2823 2823
2824 2824
2825 class LayerTreeHostTestIOSurfaceDrawing : public LayerTreeHostTest { 2825 class LayerTreeHostTestIOSurfaceDrawing : public LayerTreeHostTest {
2826 protected: 2826 protected:
2827 virtual scoped_ptr<OutputSurface> CreateOutputSurface(bool fallback) 2827 virtual scoped_ptr<OutputSurface> CreateOutputSurface(bool fallback)
2828 OVERRIDE { 2828 OVERRIDE {
2829 scoped_ptr<MockIOSurfaceWebGraphicsContext3D> mock_context_owned( 2829 scoped_ptr<MockIOSurfaceWebGraphicsContext3D> mock_context_owned(
2830 new MockIOSurfaceWebGraphicsContext3D); 2830 new MockIOSurfaceWebGraphicsContext3D);
2831 mock_context_ = mock_context_owned.get(); 2831 mock_context_ = mock_context_owned.get();
(...skipping 2445 matching lines...) Expand 10 before | Expand all | Expand 10 after
5277 size_t second_output_surface_memory_limit_; 5277 size_t second_output_surface_memory_limit_;
5278 FakeContentLayerClient client_; 5278 FakeContentLayerClient client_;
5279 scoped_refptr<FakeContentLayer> root_; 5279 scoped_refptr<FakeContentLayer> root_;
5280 }; 5280 };
5281 5281
5282 // No output to copy for delegated renderers. 5282 // No output to copy for delegated renderers.
5283 SINGLE_AND_MULTI_THREAD_TEST_F( 5283 SINGLE_AND_MULTI_THREAD_TEST_F(
5284 LayerTreeHostTestSetMemoryPolicyOnLostOutputSurface); 5284 LayerTreeHostTestSetMemoryPolicyOnLostOutputSurface);
5285 5285
5286 } // namespace cc 5286 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | cc/trees/layer_tree_host_unittest_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698