OLD | NEW |
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/logging.h" | 7 #include "base/logging.h" |
8 #include "content/browser/renderer_host/backing_store_skia.h" | 8 #include "content/browser/renderer_host/backing_store_skia.h" |
9 #include "content/browser/renderer_host/render_widget_host.h" | 9 #include "content/browser/renderer_host/render_widget_host.h" |
10 #include "content/browser/renderer_host/web_input_event_aura.h" | 10 #include "content/browser/renderer_host/web_input_event_aura.h" |
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 params.route_id, gpu_host_id)); | 422 params.route_id, gpu_host_id)); |
423 ui::Compositor* compositor = aura::RootWindow::GetInstance()->compositor(); | 423 ui::Compositor* compositor = aura::RootWindow::GetInstance()->compositor(); |
424 if (!compositor->HasObserver(this)) | 424 if (!compositor->HasObserver(this)) |
425 compositor->AddObserver(this); | 425 compositor->AddObserver(this); |
426 } | 426 } |
427 #else | 427 #else |
428 NOTREACHED(); | 428 NOTREACHED(); |
429 #endif | 429 #endif |
430 } | 430 } |
431 | 431 |
| 432 void RenderWidgetHostViewAura::AcceleratedSurfaceSuspend() { |
| 433 } |
| 434 |
432 #if defined(UI_COMPOSITOR_IMAGE_TRANSPORT) | 435 #if defined(UI_COMPOSITOR_IMAGE_TRANSPORT) |
433 void RenderWidgetHostViewAura::AcceleratedSurfaceNew( | 436 void RenderWidgetHostViewAura::AcceleratedSurfaceNew( |
434 int32 width, | 437 int32 width, |
435 int32 height, | 438 int32 height, |
436 uint64* surface_handle, | 439 uint64* surface_handle, |
437 TransportDIB::Handle* shm_handle) { | 440 TransportDIB::Handle* shm_handle) { |
438 scoped_refptr<AcceleratedSurfaceContainerLinux> surface( | 441 scoped_refptr<AcceleratedSurfaceContainerLinux> surface( |
439 new AcceleratedSurfaceContainerLinux(gfx::Size(width, height))); | 442 new AcceleratedSurfaceContainerLinux(gfx::Size(width, height))); |
440 if (!surface->Initialize(surface_handle)) { | 443 if (!surface->Initialize(surface_handle)) { |
441 LOG(ERROR) << "Failed to create AcceleratedSurfaceContainer"; | 444 LOG(ERROR) << "Failed to create AcceleratedSurfaceContainer"; |
(...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1061 // static | 1064 // static |
1062 void RenderWidgetHostView::GetDefaultScreenInfo( | 1065 void RenderWidgetHostView::GetDefaultScreenInfo( |
1063 WebKit::WebScreenInfo* results) { | 1066 WebKit::WebScreenInfo* results) { |
1064 const gfx::Size size = gfx::Screen::GetPrimaryMonitorSize(); | 1067 const gfx::Size size = gfx::Screen::GetPrimaryMonitorSize(); |
1065 results->rect = WebKit::WebRect(0, 0, size.width(), size.height()); | 1068 results->rect = WebKit::WebRect(0, 0, size.width(), size.height()); |
1066 results->availableRect = results->rect; | 1069 results->availableRect = results->rect; |
1067 // TODO(derat): Don't hardcode this? | 1070 // TODO(derat): Don't hardcode this? |
1068 results->depth = 24; | 1071 results->depth = 24; |
1069 results->depthPerComponent = 8; | 1072 results->depthPerComponent = 8; |
1070 } | 1073 } |
OLD | NEW |