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

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

Issue 132163009: [#6]Pass gfx structs by const ref (gfx::Vector2d) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on TOT Created 6 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 (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/containers/scoped_ptr_hash_map.h" 10 #include "base/containers/scoped_ptr_hash_map.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 gfx::JavaBitmap& bitmap) OVERRIDE; 69 gfx::JavaBitmap& bitmap) OVERRIDE;
70 virtual bool CopyTextureToBitmap(GLuint texture_id, 70 virtual bool CopyTextureToBitmap(GLuint texture_id,
71 const gfx::Rect& sub_rect, 71 const gfx::Rect& sub_rect,
72 gfx::JavaBitmap& bitmap) OVERRIDE; 72 gfx::JavaBitmap& bitmap) OVERRIDE;
73 73
74 // LayerTreeHostClient implementation. 74 // LayerTreeHostClient implementation.
75 virtual void WillBeginMainFrame(int frame_id) OVERRIDE {} 75 virtual void WillBeginMainFrame(int frame_id) OVERRIDE {}
76 virtual void DidBeginMainFrame() OVERRIDE {} 76 virtual void DidBeginMainFrame() OVERRIDE {}
77 virtual void Animate(double frame_begin_time) OVERRIDE {} 77 virtual void Animate(double frame_begin_time) OVERRIDE {}
78 virtual void Layout() OVERRIDE {} 78 virtual void Layout() OVERRIDE {}
79 virtual void ApplyScrollAndScale(gfx::Vector2d scroll_delta, 79 virtual void ApplyScrollAndScale(const gfx::Vector2d& scroll_delta,
80 float page_scale) OVERRIDE {} 80 float page_scale) OVERRIDE {}
81 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback) 81 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback)
82 OVERRIDE; 82 OVERRIDE;
83 virtual void DidInitializeOutputSurface(bool success) OVERRIDE {} 83 virtual void DidInitializeOutputSurface(bool success) OVERRIDE {}
84 virtual void WillCommit() OVERRIDE {} 84 virtual void WillCommit() OVERRIDE {}
85 virtual void DidCommit() OVERRIDE; 85 virtual void DidCommit() OVERRIDE;
86 virtual void DidCommitAndDrawFrame() OVERRIDE {} 86 virtual void DidCommitAndDrawFrame() OVERRIDE {}
87 virtual void DidCompleteSwapBuffers() OVERRIDE; 87 virtual void DidCompleteSwapBuffers() OVERRIDE;
88 virtual scoped_refptr<cc::ContextProvider> 88 virtual scoped_refptr<cc::ContextProvider>
89 OffscreenContextProvider() OVERRIDE; 89 OffscreenContextProvider() OVERRIDE;
(...skipping 30 matching lines...) Expand all
120 UIResourceMap ui_resource_map_; 120 UIResourceMap ui_resource_map_;
121 121
122 gfx::NativeWindow root_window_; 122 gfx::NativeWindow root_window_;
123 123
124 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); 124 DISALLOW_COPY_AND_ASSIGN(CompositorImpl);
125 }; 125 };
126 126
127 } // namespace content 127 } // namespace content
128 128
129 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ 129 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_unittest_scroll.cc ('k') | content/renderer/gpu/render_widget_compositor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698