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

Side by Side Diff: content/browser/renderer_host/compositor_impl_android.h

Issue 11293121: Add latency measurement system (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: create cc::LatencyInfo Created 7 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 float pageScale) OVERRIDE; 71 float pageScale) OVERRIDE;
72 virtual scoped_ptr<cc::OutputSurface> createOutputSurface() OVERRIDE; 72 virtual scoped_ptr<cc::OutputSurface> createOutputSurface() OVERRIDE;
73 virtual scoped_ptr<cc::InputHandler> createInputHandler() OVERRIDE; 73 virtual scoped_ptr<cc::InputHandler> createInputHandler() OVERRIDE;
74 virtual void didRecreateOutputSurface(bool success) OVERRIDE; 74 virtual void didRecreateOutputSurface(bool success) OVERRIDE;
75 virtual void willCommit() OVERRIDE {} 75 virtual void willCommit() OVERRIDE {}
76 virtual void didCommit() OVERRIDE; 76 virtual void didCommit() OVERRIDE;
77 virtual void didCommitAndDrawFrame() OVERRIDE; 77 virtual void didCommitAndDrawFrame() OVERRIDE;
78 virtual void didCompleteSwapBuffers() OVERRIDE; 78 virtual void didCompleteSwapBuffers() OVERRIDE;
79 virtual void scheduleComposite() OVERRIDE; 79 virtual void scheduleComposite() OVERRIDE;
80 virtual scoped_ptr<cc::FontAtlas> createFontAtlas() OVERRIDE; 80 virtual scoped_ptr<cc::FontAtlas> createFontAtlas() OVERRIDE;
81 virtual void onReceivedLatencyInfo(
82 const cc::LatencyInfo&) OVERRIDE;
81 83
82 // WebGraphicsContext3DSwapBuffersClient implementation. 84 // WebGraphicsContext3DSwapBuffersClient implementation.
83 virtual void OnViewContextSwapBuffersPosted() OVERRIDE; 85 virtual void OnViewContextSwapBuffersPosted() OVERRIDE;
84 virtual void OnViewContextSwapBuffersComplete() OVERRIDE; 86 virtual void OnViewContextSwapBuffersComplete() OVERRIDE;
85 virtual void OnViewContextSwapBuffersAborted() OVERRIDE; 87 virtual void OnViewContextSwapBuffersAborted() OVERRIDE;
86 88
87 private: 89 private:
88 WebKit::WebGLId BuildBasicTexture(); 90 WebKit::WebGLId BuildBasicTexture();
89 WebKit::WGC3Denum GetGLFormatForBitmap(gfx::JavaBitmap& bitmap); 91 WebKit::WGC3Denum GetGLFormatForBitmap(gfx::JavaBitmap& bitmap);
90 WebKit::WGC3Denum GetGLTypeForBitmap(gfx::JavaBitmap& bitmap); 92 WebKit::WGC3Denum GetGLTypeForBitmap(gfx::JavaBitmap& bitmap);
91 93
92 scoped_refptr<cc::Layer> root_layer_; 94 scoped_refptr<cc::Layer> root_layer_;
93 scoped_ptr<cc::LayerTreeHost> host_; 95 scoped_ptr<cc::LayerTreeHost> host_;
94 96
95 gfx::Size size_; 97 gfx::Size size_;
96 bool has_transparent_background_; 98 bool has_transparent_background_;
97 99
98 ANativeWindow* window_; 100 ANativeWindow* window_;
99 int surface_id_; 101 int surface_id_;
100 102
101 Compositor::Client* client_; 103 Compositor::Client* client_;
102 base::WeakPtrFactory<CompositorImpl> weak_factory_; 104 base::WeakPtrFactory<CompositorImpl> weak_factory_;
103 105
104 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); 106 DISALLOW_COPY_AND_ASSIGN(CompositorImpl);
105 }; 107 };
106 108
107 } // namespace content 109 } // namespace content
108 110
109 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ 111 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_
OLDNEW
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_guest.cc ('k') | content/browser/renderer_host/compositor_impl_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698