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

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

Issue 15001027: [Aura] Added Support for rendering software compositor frames as cc::TextureLayers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/callback.h" 12 #include "base/callback.h"
13 #include "base/gtest_prod_util.h" 13 #include "base/gtest_prod_util.h"
14 #include "base/memory/linked_ptr.h" 14 #include "base/memory/linked_ptr.h"
15 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
16 #include "base/memory/scoped_ptr.h" 16 #include "base/memory/scoped_ptr.h"
17 #include "base/memory/weak_ptr.h" 17 #include "base/memory/weak_ptr.h"
18 #include "cc/resources/texture_mailbox.h"
18 #include "content/browser/accessibility/browser_accessibility_manager.h" 19 #include "content/browser/accessibility/browser_accessibility_manager.h"
19 #include "content/browser/renderer_host/image_transport_factory.h" 20 #include "content/browser/renderer_host/image_transport_factory.h"
20 #include "content/browser/renderer_host/render_widget_host_view_base.h" 21 #include "content/browser/renderer_host/render_widget_host_view_base.h"
21 #include "content/common/content_export.h" 22 #include "content/common/content_export.h"
22 #include "third_party/skia/include/core/SkRegion.h" 23 #include "third_party/skia/include/core/SkRegion.h"
23 #include "ui/aura/client/activation_change_observer.h" 24 #include "ui/aura/client/activation_change_observer.h"
24 #include "ui/aura/client/activation_delegate.h" 25 #include "ui/aura/client/activation_delegate.h"
25 #include "ui/aura/client/cursor_client_observer.h" 26 #include "ui/aura/client/cursor_client_observer.h"
26 #include "ui/aura/client/focus_change_observer.h" 27 #include "ui/aura/client/focus_change_observer.h"
27 #include "ui/aura/root_window_observer.h" 28 #include "ui/aura/root_window_observer.h"
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 const scoped_refptr<ui::Texture>& texture_to_return); 473 const scoped_refptr<ui::Texture>& texture_to_return);
473 474
474 void SwapDelegatedFrame( 475 void SwapDelegatedFrame(
475 scoped_ptr<cc::DelegatedFrameData> frame_data, 476 scoped_ptr<cc::DelegatedFrameData> frame_data,
476 float frame_device_scale_factor); 477 float frame_device_scale_factor);
477 void SendDelegatedFrameAck(); 478 void SendDelegatedFrameAck();
478 479
479 void SwapSoftwareFrame( 480 void SwapSoftwareFrame(
480 scoped_ptr<cc::SoftwareFrameData> frame_data, 481 scoped_ptr<cc::SoftwareFrameData> frame_data,
481 float frame_device_scale_factor); 482 float frame_device_scale_factor);
482 void SendSoftwareFrameAck(const TransportDIB::Id& id); 483 void SendSoftwareFrameAck(int id);
483 484
484 BrowserAccessibilityManager* GetOrCreateBrowserAccessibilityManager(); 485 BrowserAccessibilityManager* GetOrCreateBrowserAccessibilityManager();
485 486
486 #if defined(OS_WIN) 487 #if defined(OS_WIN)
487 // Sets the cutout rects from transient windows. These are rectangles that 488 // Sets the cutout rects from transient windows. These are rectangles that
488 // windowed NPAPI plugins shouldn't paint in. Overwrites any previous cutout 489 // windowed NPAPI plugins shouldn't paint in. Overwrites any previous cutout
489 // rects. 490 // rects.
490 void UpdateTransientRects(const std::vector<gfx::Rect>& rects); 491 void UpdateTransientRects(const std::vector<gfx::Rect>& rects);
491 492
492 // Updates the total list of cutout rects, which is the union of transient 493 // Updates the total list of cutout rects, which is the union of transient
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 bool has_composition_text_; 551 bool has_composition_text_;
551 552
552 // Current tooltip text. 553 // Current tooltip text.
553 string16 tooltip_; 554 string16 tooltip_;
554 555
555 std::vector<base::Closure> on_compositing_did_commit_callbacks_; 556 std::vector<base::Closure> on_compositing_did_commit_callbacks_;
556 557
557 // The current frontbuffer texture. 558 // The current frontbuffer texture.
558 scoped_refptr<ui::Texture> current_surface_; 559 scoped_refptr<ui::Texture> current_surface_;
559 560
560 // The current frontbuffer DIB. 561 // The current frontbuffer shared memory.
561 scoped_ptr<TransportDIB> current_dib_; 562 cc::TextureMailbox current_frame_;
piman 2013/05/28 20:58:57 nit: as is, it looks like it's used for the GL pat
slavi 2013/05/29 18:31:48 Done.
562
563 // The current DIB id as it was received from the renderer. Note that on
564 // some platforms (e.g. Windows) this is different from current_dib_->id().
565 TransportDIB::Id current_dib_id_;
566 563
567 // The damage in the previously presented buffer. 564 // The damage in the previously presented buffer.
568 SkRegion previous_damage_; 565 SkRegion previous_damage_;
569 566
570 // Pending damage from previous frames that we skipped. 567 // Pending damage from previous frames that we skipped.
571 SkRegion skipped_damage_; 568 SkRegion skipped_damage_;
572 569
573 // The size of the last frame that was swapped (even if we skipped it). 570 // The size of the last frame that was swapped (even if we skipped it).
574 // Used to determine when the skipped_damage_ needs to be reset due to 571 // Used to determine when the skipped_damage_ needs to be reset due to
575 // size changes between front- and backbuffer. 572 // size changes between front- and backbuffer.
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
671 scoped_ptr<RenderWidgetHostViewFrameSubscriber> frame_subscriber_; 668 scoped_ptr<RenderWidgetHostViewFrameSubscriber> frame_subscriber_;
672 669
673 TouchEditingClient* touch_editing_client_; 670 TouchEditingClient* touch_editing_client_;
674 671
675 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); 672 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura);
676 }; 673 };
677 674
678 } // namespace content 675 } // namespace content
679 676
680 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 677 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698