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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_aura.cc

Issue 9582003: Support browser side thumbnailing for GPU composited pages on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge CopyFromCompoitingSurface into CopyFromBackingStore Created 8 years, 9 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 #include "content/browser/renderer_host/render_widget_host_view_aura.h" 5 #include "content/browser/renderer_host/render_widget_host_view_aura.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "content/browser/renderer_host/backing_store_skia.h" 10 #include "content/browser/renderer_host/backing_store_skia.h"
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 } 522 }
523 image_transport_clients_.erase(surface_handle); 523 image_transport_clients_.erase(surface_handle);
524 } 524 }
525 525
526 void RenderWidgetHostViewAura::SetBackground(const SkBitmap& background) { 526 void RenderWidgetHostViewAura::SetBackground(const SkBitmap& background) {
527 content::RenderWidgetHostViewBase::SetBackground(background); 527 content::RenderWidgetHostViewBase::SetBackground(background);
528 host_->SetBackground(background); 528 host_->SetBackground(background);
529 window_->layer()->SetFillsBoundsOpaquely(background.isOpaque()); 529 window_->layer()->SetFillsBoundsOpaquely(background.isOpaque());
530 } 530 }
531 531
532 bool RenderWidgetHostViewAura::CopyFromCompositingSurface(
533 const gfx::Size& size,
534 skia::PlatformCanvas* output) {
535 // TODO(mazda): Implement this.
536 NOTIMPLEMENTED();
537 return false;
538 }
539
532 void RenderWidgetHostViewAura::GetScreenInfo(WebKit::WebScreenInfo* results) { 540 void RenderWidgetHostViewAura::GetScreenInfo(WebKit::WebScreenInfo* results) {
533 GetDefaultScreenInfo(results); 541 GetDefaultScreenInfo(results);
534 } 542 }
535 543
536 gfx::Rect RenderWidgetHostViewAura::GetRootWindowBounds() { 544 gfx::Rect RenderWidgetHostViewAura::GetRootWindowBounds() {
537 // TODO(beng): this is actually wrong, we are supposed to return the bounds 545 // TODO(beng): this is actually wrong, we are supposed to return the bounds
538 // of the container "top level" window, but we don't have a firm 546 // of the container "top level" window, but we don't have a firm
539 // concept of what constitutes a toplevel right now, so just do 547 // concept of what constitutes a toplevel right now, so just do
540 // this. 548 // this.
541 return window_->GetScreenBounds(); 549 return window_->GetScreenBounds();
(...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after
1144 WebKit::WebScreenInfo* results) { 1152 WebKit::WebScreenInfo* results) {
1145 const gfx::Size size = gfx::Screen::GetPrimaryMonitorSize(); 1153 const gfx::Size size = gfx::Screen::GetPrimaryMonitorSize();
1146 results->rect = WebKit::WebRect(0, 0, size.width(), size.height()); 1154 results->rect = WebKit::WebRect(0, 0, size.width(), size.height());
1147 results->availableRect = results->rect; 1155 results->availableRect = results->rect;
1148 // TODO(derat): Don't hardcode this? 1156 // TODO(derat): Don't hardcode this?
1149 results->depth = 24; 1157 results->depth = 24;
1150 results->depthPerComponent = 8; 1158 results->depthPerComponent = 8;
1151 results->verticalDPI = 96; 1159 results->verticalDPI = 96;
1152 results->horizontalDPI = 96; 1160 results->horizontalDPI = 96;
1153 } 1161 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698