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

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

Issue 10828356: Very basic Android browser-side compositing support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments, make compositor non-singleton Created 8 years, 3 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_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/i18n/rtl.h" 9 #include "base/i18n/rtl.h"
10 #include "base/memory/scoped_ptr.h"
10 #include "base/process.h" 11 #include "base/process.h"
11 #include "content/browser/renderer_host/render_widget_host_view_base.h" 12 #include "content/browser/renderer_host/render_widget_host_view_base.h"
13 #include "third_party/WebKit/Source/Platform/chromium/public/WebExternalTextureL ayer.h"
12 #include "ui/gfx/size.h" 14 #include "ui/gfx/size.h"
13 15
14 struct ViewHostMsg_TextInputState_Params; 16 struct ViewHostMsg_TextInputState_Params;
15 17
16 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params; 18 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params;
17 struct GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params; 19 struct GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params;
18 20
19 namespace content { 21 namespace content {
20 class ContentViewCoreImpl; 22 class ContentViewCoreImpl;
21 class RenderWidgetHost; 23 class RenderWidgetHost;
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 // Whether or not this widget is hidden. 116 // Whether or not this widget is hidden.
115 bool is_hidden_; 117 bool is_hidden_;
116 118
117 // ContentViewCoreImpl is our interface to the view system. 119 // ContentViewCoreImpl is our interface to the view system.
118 ContentViewCoreImpl* content_view_core_; 120 ContentViewCoreImpl* content_view_core_;
119 121
120 // The size that we want the renderer to be. We keep this in a separate 122 // The size that we want the renderer to be. We keep this in a separate
121 // variable because resizing is async. 123 // variable because resizing is async.
122 gfx::Size requested_size_; 124 gfx::Size requested_size_;
123 125
126 // The texture layer for this view when using browser-side compositing.
127 scoped_ptr<WebKit::WebExternalTextureLayer> texture_layer_;
128
124 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); 129 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
125 }; 130 };
126 131
127 } // namespace content 132 } // namespace content
128 133
129 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 134 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698