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

Side by Side Diff: cc/delegating_renderer.h

Issue 11293121: Add latency measurement system (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: minor input event changes 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
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_DELEGATING_RENDERER_H_ 5 #ifndef CC_DELEGATING_RENDERER_H_
6 #define CC_DELEGATING_RENDERER_H_ 6 #define CC_DELEGATING_RENDERER_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "cc/cc_export.h" 9 #include "cc/cc_export.h"
10 #include "cc/renderer.h" 10 #include "cc/renderer.h"
(...skipping 28 matching lines...) Expand all
39 virtual void receiveCompositorFrameAck(const CompositorFrameAck&) OVERRIDE; 39 virtual void receiveCompositorFrameAck(const CompositorFrameAck&) OVERRIDE;
40 40
41 virtual bool isContextLost() OVERRIDE; 41 virtual bool isContextLost() OVERRIDE;
42 42
43 virtual void setVisible(bool) OVERRIDE; 43 virtual void setVisible(bool) OVERRIDE;
44 44
45 virtual void sendManagedMemoryStats(size_t bytes_visible, 45 virtual void sendManagedMemoryStats(size_t bytes_visible,
46 size_t bytes_visible_and_nearby, 46 size_t bytes_visible_and_nearby,
47 size_t bytes_allocated) OVERRIDE {} 47 size_t bytes_allocated) OVERRIDE {}
48 48
49 virtual void setLatencyInfo(const WebKit::WebLatencyInfoImpl&) OVERRIDE {}
50
49 // WebGraphicsContext3D::WebGraphicsContextLostCallback implementation. 51 // WebGraphicsContext3D::WebGraphicsContextLostCallback implementation.
50 virtual void onContextLost() OVERRIDE; 52 virtual void onContextLost() OVERRIDE;
51 53
52 private: 54 private:
53 DelegatingRenderer(RendererClient* client, 55 DelegatingRenderer(RendererClient* client,
54 ResourceProvider* resource_provider); 56 ResourceProvider* resource_provider);
55 bool Initialize(); 57 bool Initialize();
56 58
57 ResourceProvider* resource_provider_; 59 ResourceProvider* resource_provider_;
58 RendererCapabilities capabilities_; 60 RendererCapabilities capabilities_;
59 bool visible_; 61 bool visible_;
60 62
61 DISALLOW_COPY_AND_ASSIGN(DelegatingRenderer); 63 DISALLOW_COPY_AND_ASSIGN(DelegatingRenderer);
62 }; 64 };
63 65
64 } // namespace cc 66 } // namespace cc
65 67
66 #endif // CC_DELEGATING_RENDERER_H_ 68 #endif // CC_DELEGATING_RENDERER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698