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

Side by Side Diff: cc/prioritized_resource_unittest.cc

Issue 11472021: cc: Pass LayerTreeHostImpl to LayerImpl constructor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years 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/picture_layer_impl.cc ('k') | cc/quad_culler_unittest.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/prioritized_resource.h" 5 #include "cc/prioritized_resource.h"
6 6
7 #include "cc/prioritized_resource_manager.h" 7 #include "cc/prioritized_resource_manager.h"
8 #include "cc/resource.h" 8 #include "cc/resource.h"
9 #include "cc/single_thread_proxy.h" // For DebugScopedSetImplThread 9 #include "cc/single_thread_proxy.h" // For DebugScopedSetImplThread
10 #include "cc/test/fake_output_surface.h" 10 #include "cc/test/fake_output_surface.h"
11 #include "cc/test/fake_proxy.h" 11 #include "cc/test/fake_proxy.h"
12 #include "cc/test/tiled_layer_test_common.h" 12 #include "cc/test/tiled_layer_test_common.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 14
15 using namespace WebKitTests;
16
17 namespace cc { 15 namespace cc {
18 16
19 class PrioritizedResourceTest : public testing::Test { 17 class PrioritizedResourceTest : public testing::Test {
20 public: 18 public:
21 PrioritizedResourceTest() 19 PrioritizedResourceTest()
22 : m_proxy(scoped_ptr<Thread>(NULL)) 20 : m_proxy(scoped_ptr<Thread>(NULL))
23 , m_textureSize(256, 256) 21 , m_textureSize(256, 256)
24 , m_textureFormat(GL_RGBA) 22 , m_textureFormat(GL_RGBA)
25 , m_outputSurface(createFakeOutputSurface()) 23 , m_outputSurface(createFakeOutputSurface())
26 { 24 {
(...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after
700 EXPECT_EQ(texturesMemorySize(3), resourceManager->memoryVisibleBytes()); 698 EXPECT_EQ(texturesMemorySize(3), resourceManager->memoryVisibleBytes());
701 EXPECT_EQ(texturesMemorySize(4), resourceManager->memoryVisibleAndNearby Bytes()); 699 EXPECT_EQ(texturesMemorySize(4), resourceManager->memoryVisibleAndNearby Bytes());
702 } 700 }
703 701
704 DebugScopedSetImplThreadAndMainThreadBlocked implThreadAndMainThreadBlocked( &m_proxy); 702 DebugScopedSetImplThreadAndMainThreadBlocked implThreadAndMainThreadBlocked( &m_proxy);
705 resourceManager->clearAllMemory(resourceProvider()); 703 resourceManager->clearAllMemory(resourceProvider());
706 } 704 }
707 705
708 } // namespace 706 } // namespace
709 } // namespace cc 707 } // namespace cc
OLDNEW
« no previous file with comments | « cc/picture_layer_impl.cc ('k') | cc/quad_culler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698