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

Side by Side Diff: components/viz/service/hit_test/display_hit_test_data_factory.h

Issue 2938953002: Implement HitTestAggregator (Closed)
Patch Set: improvents based on reviewer comments ( partial ) Created 3 years, 6 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
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_VIZ_SERVICE_HIT_TEST_DISPLAY_HIT_TEST_DATA_FACTORY_H_
6 #define COMPONENTS_VIZ_SERVICE_HIT_TEST_DISPLAY_HIT_TEST_DATA_FACTORY_H_
7
8 #include <stdint.h>
9
10 #include <map>
11 #include <memory>
12
13 #include "components/viz/common/hit_test/display_hit_test_data.h"
14 #include "components/viz/service/viz_service_export.h"
15
16 namespace viz {
17 namespace hit_test {
18
19 class DisplayHitTestDataFactory {
20 public:
21 virtual ~DisplayHitTestDataFactory() = default;
22
23 // Creates the memory required for a DisplayHitTestData structure.
24 // This may use an implementation that allocates local heap memory
25 // when viz and browser are in the same process and must use an
26 // implementation that allocates shared memory when they are not.
27 virtual DisplayHitTestData* Create(int byte_count) = 0;
28 };
29
30 } // namespace hit_test
31 } // namespace viz
32
33 #endif // COMPONENTS_VIZ_SERVICE_HIT_TEST_DISPLAY_HIT_TEST_DATA_FACTORY_H_
varkha 2017/06/19 21:15:04 nit: Remove extra space after //
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698