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

Side by Side Diff: cc/test/surface_hittest_test_helpers.h

Issue 1673783004: Hook up BeginFrameSource to SurfaceFactoryClient via SurfaceManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Register id namespace on Android Created 4 years, 9 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/surfaces_pixeltest.cc ('k') | components/mus/surfaces/top_level_display_client.h » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef CC_TEST_SURFACE_HITTEST_TEST_HELPERS_H_ 5 #ifndef CC_TEST_SURFACE_HITTEST_TEST_HELPERS_H_
6 #define CC_TEST_SURFACE_HITTEST_TEST_HELPERS_H_ 6 #define CC_TEST_SURFACE_HITTEST_TEST_HELPERS_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 11 matching lines...) Expand all
22 22
23 class CompositorFrame; 23 class CompositorFrame;
24 class RenderPassDrawQuad; 24 class RenderPassDrawQuad;
25 class SolidColorDrawQuad; 25 class SolidColorDrawQuad;
26 26
27 namespace test { 27 namespace test {
28 28
29 class EmptySurfaceFactoryClient : public SurfaceFactoryClient { 29 class EmptySurfaceFactoryClient : public SurfaceFactoryClient {
30 public: 30 public:
31 void ReturnResources(const ReturnedResourceArray& resources) override {} 31 void ReturnResources(const ReturnedResourceArray& resources) override {}
32 void SetBeginFrameSource(SurfaceId surface_id, 32 void SetBeginFrameSource(BeginFrameSource* begin_frame_source) override {}
33 BeginFrameSource* begin_frame_source) override {}
34 }; 33 };
35 34
36 void CreateSharedQuadState(RenderPass* pass, 35 void CreateSharedQuadState(RenderPass* pass,
37 const gfx::Transform& transform, 36 const gfx::Transform& transform,
38 const gfx::Rect& root_rect); 37 const gfx::Rect& root_rect);
39 38
40 void CreateSolidColorDrawQuad(RenderPass* pass, 39 void CreateSolidColorDrawQuad(RenderPass* pass,
41 const gfx::Transform& transform, 40 const gfx::Transform& transform,
42 const gfx::Rect& root_rect, 41 const gfx::Rect& root_rect,
43 const gfx::Rect& quad_rect); 42 const gfx::Rect& quad_rect);
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 std::map<SurfaceId, gfx::Insets> insets_for_reject_; 89 std::map<SurfaceId, gfx::Insets> insets_for_reject_;
91 std::map<SurfaceId, gfx::Insets> insets_for_accept_; 90 std::map<SurfaceId, gfx::Insets> insets_for_accept_;
92 91
93 DISALLOW_COPY_AND_ASSIGN(TestSurfaceHittestDelegate); 92 DISALLOW_COPY_AND_ASSIGN(TestSurfaceHittestDelegate);
94 }; 93 };
95 94
96 } // namespace test 95 } // namespace test
97 } // namespace cc 96 } // namespace cc
98 97
99 #endif // CC_TEST_SURFACE_HITTEST_TEST_HELPERS_H_ 98 #endif // CC_TEST_SURFACE_HITTEST_TEST_HELPERS_H_
OLDNEW
« no previous file with comments | « cc/surfaces/surfaces_pixeltest.cc ('k') | components/mus/surfaces/top_level_display_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698