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

Side by Side Diff: cc/surfaces/surfaces_pixeltest.cc

Issue 2144733005: [WIP] cc: Plumb SurfaceId from clients Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ensure only SurfaceFactoy and tests can update hierarchy Created 4 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
« no previous file with comments | « cc/surfaces/surface_unittest.cc ('k') | cc/test/test_delegating_output_surface.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/output/compositor_frame.h" 5 #include "cc/output/compositor_frame.h"
6 #include "cc/quads/render_pass.h" 6 #include "cc/quads/render_pass.h"
7 #include "cc/quads/solid_color_draw_quad.h" 7 #include "cc/quads/solid_color_draw_quad.h"
8 #include "cc/quads/surface_draw_quad.h" 8 #include "cc/quads/surface_draw_quad.h"
9 #include "cc/surfaces/surface.h" 9 #include "cc/surfaces/surface.h"
10 #include "cc/surfaces/surface_aggregator.h" 10 #include "cc/surfaces/surface_aggregator.h"
(...skipping 14 matching lines...) Expand all
25 25
26 class EmptySurfaceFactoryClient : public SurfaceFactoryClient { 26 class EmptySurfaceFactoryClient : public SurfaceFactoryClient {
27 public: 27 public:
28 void ReturnResources(const ReturnedResourceArray& resources) override {} 28 void ReturnResources(const ReturnedResourceArray& resources) override {}
29 void SetBeginFrameSource(BeginFrameSource* begin_frame_source) override {} 29 void SetBeginFrameSource(BeginFrameSource* begin_frame_source) override {}
30 }; 30 };
31 31
32 class SurfacesPixelTest : public RendererPixelTest<GLRenderer> { 32 class SurfacesPixelTest : public RendererPixelTest<GLRenderer> {
33 public: 33 public:
34 SurfacesPixelTest() 34 SurfacesPixelTest()
35 : allocator_(kArbitraryClientId), factory_(&manager_, &client_) {} 35 : allocator_(kArbitraryClientId),
36 factory_(kArbitraryClientId, &manager_, &client_) {}
36 37
37 protected: 38 protected:
38 SurfaceManager manager_; 39 SurfaceManager manager_;
39 SurfaceIdAllocator allocator_; 40 SurfaceIdAllocator allocator_;
40 EmptySurfaceFactoryClient client_; 41 EmptySurfaceFactoryClient client_;
41 SurfaceFactory factory_; 42 SurfaceFactory factory_;
42 }; 43 };
43 44
44 SharedQuadState* CreateAndAppendTestSharedQuadState( 45 SharedQuadState* CreateAndAppendTestSharedQuadState(
45 RenderPass* render_pass, 46 RenderPass* render_pass,
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 333
333 factory_.Destroy(root_surface_id); 334 factory_.Destroy(root_surface_id);
334 factory_.Destroy(left_child_id); 335 factory_.Destroy(left_child_id);
335 factory_.Destroy(right_child_id); 336 factory_.Destroy(right_child_id);
336 } 337 }
337 338
338 } // namespace 339 } // namespace
339 } // namespace cc 340 } // namespace cc
340 341
341 #endif // !defined(OS_ANDROID) 342 #endif // !defined(OS_ANDROID)
OLDNEW
« no previous file with comments | « cc/surfaces/surface_unittest.cc ('k') | cc/test/test_delegating_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698