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

Side by Side Diff: chrome/renderer/render_view.cc

Issue 3067026: Initial port of accelerated compositor to Mac OS X 10.6. Reused... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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
« no previous file with comments | « chrome/renderer/render_view.h ('k') | chrome/renderer/webgles2context_impl.h » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #include "chrome/renderer/render_view.h" 5 #include "chrome/renderer/render_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 5151 matching lines...) Expand 10 before | Expand all | Expand 10 after
5162 if (!has_document_tag_) { 5162 if (!has_document_tag_) {
5163 // Make the call to get the tag. 5163 // Make the call to get the tag.
5164 Send(new ViewHostMsg_GetDocumentTag(routing_id_, &document_tag_)); 5164 Send(new ViewHostMsg_GetDocumentTag(routing_id_, &document_tag_));
5165 has_document_tag_ = true; 5165 has_document_tag_ = true;
5166 } 5166 }
5167 #endif 5167 #endif
5168 } 5168 }
5169 5169
5170 #if defined(OS_MACOSX) 5170 #if defined(OS_MACOSX)
5171 gfx::PluginWindowHandle RenderView::AllocateFakePluginWindowHandle( 5171 gfx::PluginWindowHandle RenderView::AllocateFakePluginWindowHandle(
5172 bool opaque) { 5172 bool opaque, bool root) {
5173 gfx::PluginWindowHandle window = NULL; 5173 gfx::PluginWindowHandle window = NULL;
5174 Send(new ViewHostMsg_AllocateFakePluginWindowHandle( 5174 Send(new ViewHostMsg_AllocateFakePluginWindowHandle(
5175 routing_id(), opaque, &window)); 5175 routing_id(), opaque, root, &window));
5176 return window; 5176 return window;
5177 } 5177 }
5178 5178
5179 void RenderView::DestroyFakePluginWindowHandle(gfx::PluginWindowHandle window) { 5179 void RenderView::DestroyFakePluginWindowHandle(gfx::PluginWindowHandle window) {
5180 if (window) 5180 if (window)
5181 Send(new ViewHostMsg_DestroyFakePluginWindowHandle(routing_id(), window)); 5181 Send(new ViewHostMsg_DestroyFakePluginWindowHandle(routing_id(), window));
5182 } 5182 }
5183 5183
5184 void RenderView::AcceleratedSurfaceSetIOSurface(gfx::PluginWindowHandle window, 5184 void RenderView::AcceleratedSurfaceSetIOSurface(gfx::PluginWindowHandle window,
5185 int32 width, 5185 int32 width,
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
5289 // the origins of the two domains are different. This can be treated as a 5289 // the origins of the two domains are different. This can be treated as a
5290 // top level navigation and routed back to the host. 5290 // top level navigation and routed back to the host.
5291 WebKit::WebFrame* opener = frame->opener(); 5291 WebKit::WebFrame* opener = frame->opener();
5292 if (opener) { 5292 if (opener) {
5293 if (url.GetOrigin() != GURL(opener->url()).GetOrigin()) 5293 if (url.GetOrigin() != GURL(opener->url()).GetOrigin())
5294 return true; 5294 return true;
5295 } 5295 }
5296 } 5296 }
5297 return false; 5297 return false;
5298 } 5298 }
OLDNEW
« no previous file with comments | « chrome/renderer/render_view.h ('k') | chrome/renderer/webgles2context_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698