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

Side by Side Diff: content/browser/browser_plugin/browser_plugin_guest.cc

Issue 11194042: Implement TextureImageTransportSurface using texture mailbox (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win_aura DCHECK() Created 8 years 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 | « no previous file | content/browser/gpu/gpu_process_host.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 #include "content/browser/browser_plugin/browser_plugin_guest.h" 5 #include "content/browser/browser_plugin/browser_plugin_guest.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "content/browser/browser_plugin/browser_plugin_embedder.h" 10 #include "content/browser/browser_plugin/browser_plugin_embedder.h"
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 DCHECK(texture_id_1 == 0); 356 DCHECK(texture_id_1 == 0);
357 return; 357 return;
358 } 358 }
359 359
360 DCHECK(texture_id_1 != 0); 360 DCHECK(texture_id_1 != 0);
361 DCHECK(texture_id_0 != texture_id_1); 361 DCHECK(texture_id_0 != texture_id_1);
362 362
363 surface_handle_ = gfx::GLSurfaceHandle(gfx::kNullPluginWindow, true); 363 surface_handle_ = gfx::GLSurfaceHandle(gfx::kNullPluginWindow, true);
364 surface_handle_.parent_gpu_process_id = gpu_process_id; 364 surface_handle_.parent_gpu_process_id = gpu_process_id;
365 surface_handle_.parent_client_id = client_id; 365 surface_handle_.parent_client_id = client_id;
366 surface_handle_.parent_context_id = context_id;
367 surface_handle_.parent_texture_id[0] = texture_id_0;
368 surface_handle_.parent_texture_id[1] = texture_id_1;
369 surface_handle_.sync_point = sync_point;
370 } 366 }
371 367
372 bool BrowserPluginGuest::InAutoSizeBounds(const gfx::Size& size) const { 368 bool BrowserPluginGuest::InAutoSizeBounds(const gfx::Size& size) const {
373 return size.width() <= max_auto_size_.width() && 369 return size.width() <= max_auto_size_.width() &&
374 size.height() <= max_auto_size_.height(); 370 size.height() <= max_auto_size_.height();
375 } 371 }
376 372
377 void BrowserPluginGuest::UpdateRect( 373 void BrowserPluginGuest::UpdateRect(
378 RenderViewHost* render_view_host, 374 RenderViewHost* render_view_host,
379 const ViewHostMsg_UpdateRect_Params& params) { 375 const ViewHostMsg_UpdateRect_Params& params) {
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
636 default: 632 default:
637 break; 633 break;
638 } 634 }
639 } 635 }
640 636
641 void BrowserPluginGuest::SendMessageToEmbedder(IPC::Message* msg) { 637 void BrowserPluginGuest::SendMessageToEmbedder(IPC::Message* msg) {
642 embedder_web_contents_->Send(msg); 638 embedder_web_contents_->Send(msg);
643 } 639 }
644 640
645 } // namespace content 641 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/browser/gpu/gpu_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698