| 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_mac.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_mac.h" |
| 6 | 6 |
| 7 #import <objc/runtime.h> | 7 #import <objc/runtime.h> |
| 8 #include <QuartzCore/QuartzCore.h> | 8 #include <QuartzCore/QuartzCore.h> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 2197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2208 ack_params.renderer_id = pending_swap_ack_->renderer_id; | 2208 ack_params.renderer_id = pending_swap_ack_->renderer_id; |
| 2209 RenderWidgetHostImpl::AcknowledgeBufferPresent(pending_swap_ack_->route_id, | 2209 RenderWidgetHostImpl::AcknowledgeBufferPresent(pending_swap_ack_->route_id, |
| 2210 pending_swap_ack_->gpu_host_id, | 2210 pending_swap_ack_->gpu_host_id, |
| 2211 ack_params); | 2211 ack_params); |
| 2212 if (render_widget_host_) | 2212 if (render_widget_host_) |
| 2213 render_widget_host_->AcknowledgeSwapBuffersToRenderer(); | 2213 render_widget_host_->AcknowledgeSwapBuffersToRenderer(); |
| 2214 | 2214 |
| 2215 pending_swap_ack_.reset(); | 2215 pending_swap_ack_.reset(); |
| 2216 } | 2216 } |
| 2217 | 2217 |
| 2218 SkBitmap::Config RenderWidgetHostViewMac::PreferredReadbackFormat() { |
| 2219 return SkBitmap::kARGB_8888_Config; |
| 2220 } |
| 2221 |
| 2218 } // namespace content | 2222 } // namespace content |
| 2219 | 2223 |
| 2220 // RenderWidgetHostViewCocoa --------------------------------------------------- | 2224 // RenderWidgetHostViewCocoa --------------------------------------------------- |
| 2221 | 2225 |
| 2222 @implementation RenderWidgetHostViewCocoa | 2226 @implementation RenderWidgetHostViewCocoa |
| 2223 @synthesize selectedRange = selectedRange_; | 2227 @synthesize selectedRange = selectedRange_; |
| 2224 @synthesize suppressNextEscapeKeyUp = suppressNextEscapeKeyUp_; | 2228 @synthesize suppressNextEscapeKeyUp = suppressNextEscapeKeyUp_; |
| 2225 @synthesize markedRange = markedRange_; | 2229 @synthesize markedRange = markedRange_; |
| 2226 | 2230 |
| 2227 - (id)initWithRenderWidgetHostViewMac:(RenderWidgetHostViewMac*)r { | 2231 - (id)initWithRenderWidgetHostViewMac:(RenderWidgetHostViewMac*)r { |
| (...skipping 2042 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4270 CGColorGetConstantColor(kCGColorWhite)); | 4274 CGColorGetConstantColor(kCGColorWhite)); |
| 4271 CGContextFillRect(context, clipRect); | 4275 CGContextFillRect(context, clipRect); |
| 4272 } | 4276 } |
| 4273 } | 4277 } |
| 4274 | 4278 |
| 4275 - (void)disableRendering { | 4279 - (void)disableRendering { |
| 4276 renderWidgetHostView_ = NULL; | 4280 renderWidgetHostView_ = NULL; |
| 4277 } | 4281 } |
| 4278 | 4282 |
| 4279 @end // implementation SoftwareLayer | 4283 @end // implementation SoftwareLayer |
| OLD | NEW |