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

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

Issue 12082012: Implement desktop compatibility viewport (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@aelias
Patch Set: Created 7 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
« no previous file with comments | « cc/pinch_zoom_viewport.h ('k') | content/browser/renderer_host/compositor_impl_android.cc » ('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 (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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 virtual bool CopyTextureToBitmap(WebKit::WebGLId texture_id, 61 virtual bool CopyTextureToBitmap(WebKit::WebGLId texture_id,
62 const gfx::Rect& sub_rect, 62 const gfx::Rect& sub_rect,
63 gfx::JavaBitmap& bitmap) OVERRIDE; 63 gfx::JavaBitmap& bitmap) OVERRIDE;
64 64
65 // LayerTreeHostClient implementation. 65 // LayerTreeHostClient implementation.
66 virtual void willBeginFrame() OVERRIDE {} 66 virtual void willBeginFrame() OVERRIDE {}
67 virtual void didBeginFrame() OVERRIDE {} 67 virtual void didBeginFrame() OVERRIDE {}
68 virtual void animate(double monotonicFrameBeginTime) OVERRIDE; 68 virtual void animate(double monotonicFrameBeginTime) OVERRIDE;
69 virtual void layout() OVERRIDE; 69 virtual void layout() OVERRIDE;
70 virtual void applyScrollAndScale(gfx::Vector2d scrollDelta, 70 virtual void applyScrollAndScale(gfx::Vector2d scrollDelta,
71 float pageScale) OVERRIDE; 71 float pageScale,
72 gfx::Vector2d desktopCompatibilityViewportOff setFromScrollPositionDelta) OVERRIDE;
72 virtual scoped_ptr<cc::OutputSurface> createOutputSurface() OVERRIDE; 73 virtual scoped_ptr<cc::OutputSurface> createOutputSurface() OVERRIDE;
73 virtual scoped_ptr<cc::InputHandler> createInputHandler() OVERRIDE; 74 virtual scoped_ptr<cc::InputHandler> createInputHandler() OVERRIDE;
74 virtual void didRecreateOutputSurface(bool success) OVERRIDE; 75 virtual void didRecreateOutputSurface(bool success) OVERRIDE;
75 virtual void willCommit() OVERRIDE {} 76 virtual void willCommit() OVERRIDE {}
76 virtual void didCommit() OVERRIDE; 77 virtual void didCommit() OVERRIDE;
77 virtual void didCommitAndDrawFrame() OVERRIDE; 78 virtual void didCommitAndDrawFrame() OVERRIDE;
78 virtual void didCompleteSwapBuffers() OVERRIDE; 79 virtual void didCompleteSwapBuffers() OVERRIDE;
79 virtual void scheduleComposite() OVERRIDE; 80 virtual void scheduleComposite() OVERRIDE;
80 virtual scoped_ptr<cc::FontAtlas> createFontAtlas() OVERRIDE; 81 virtual scoped_ptr<cc::FontAtlas> createFontAtlas() OVERRIDE;
81 82
(...skipping 18 matching lines...) Expand all
100 101
101 Compositor::Client* client_; 102 Compositor::Client* client_;
102 base::WeakPtrFactory<CompositorImpl> weak_factory_; 103 base::WeakPtrFactory<CompositorImpl> weak_factory_;
103 104
104 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); 105 DISALLOW_COPY_AND_ASSIGN(CompositorImpl);
105 }; 106 };
106 107
107 } // namespace content 108 } // namespace content
108 109
109 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ 110 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_
OLDNEW
« no previous file with comments | « cc/pinch_zoom_viewport.h ('k') | content/browser/renderer_host/compositor_impl_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698