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

Side by Side Diff: cc/trees/layer_tree_host_client.h

Issue 900063002: Fixes for two different HUD issues related to win32k lockdown (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: i am a plumber Created 5 years, 10 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
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 #ifndef CC_TREES_LAYER_TREE_HOST_CLIENT_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_CLIENT_H_
6 #define CC_TREES_LAYER_TREE_HOST_CLIENT_H_ 6 #define CC_TREES_LAYER_TREE_HOST_CLIENT_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
11 11
12 class SkTypeface;
13
12 namespace gfx { 14 namespace gfx {
13 class Vector2d; 15 class Vector2d;
14 class Vector2dF; 16 class Vector2dF;
15 } 17 }
16 18
17 namespace cc { 19 namespace cc {
18 class ContextProvider; 20 class ContextProvider;
19 class InputHandlerClient; 21 class InputHandlerClient;
20 class OutputSurface; 22 class OutputSurface;
21 struct BeginFrameArgs; 23 struct BeginFrameArgs;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 // TODO(simonhong): Makes this to pure virtual function when client 57 // TODO(simonhong): Makes this to pure virtual function when client
56 // implementation is ready. 58 // implementation is ready.
57 virtual void SendBeginFramesToChildren(const BeginFrameArgs& args) {} 59 virtual void SendBeginFramesToChildren(const BeginFrameArgs& args) {}
58 60
59 // Requests that the client insert a rate limiting token in the shared main 61 // Requests that the client insert a rate limiting token in the shared main
60 // thread context's command stream that will block if the context gets too far 62 // thread context's command stream that will block if the context gets too far
61 // ahead of the compositor's command stream. Only needed if the tree contains 63 // ahead of the compositor's command stream. Only needed if the tree contains
62 // a TextureLayer that calls SetRateLimitContext(true). 64 // a TextureLayer that calls SetRateLimitContext(true).
63 virtual void RateLimitSharedMainThreadContext() {} 65 virtual void RateLimitSharedMainThreadContext() {}
64 66
67 virtual SkTypeface* GetHudTypeface() = 0;
enne (OOO) 2015/02/05 01:30:28 This is here (vs LayerTreeSettings) so that the fo
scottmg 2015/02/05 03:28:32 LayerTreeSettings seems fine if that's OK w/ you.
enne (OOO) 2015/02/05 17:54:44 Or, said differently, if lazy initialization isn't
68
65 protected: 69 protected:
66 virtual ~LayerTreeHostClient() {} 70 virtual ~LayerTreeHostClient() {}
67 }; 71 };
68 72
69 } // namespace cc 73 } // namespace cc
70 74
71 #endif // CC_TREES_LAYER_TREE_HOST_CLIENT_H_ 75 #endif // CC_TREES_LAYER_TREE_HOST_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698