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

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: Rebased. 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 "content/common/gpu/client/gl_helper.h" 23 #include "content/common/gpu/client/gl_helper.h"
23 #include "third_party/skia/include/core/SkRegion.h" 24 #include "third_party/skia/include/core/SkRegion.h"
24 #include "ui/aura/client/activation_change_observer.h" 25 #include "ui/aura/client/activation_change_observer.h"
25 #include "ui/aura/client/activation_delegate.h" 26 #include "ui/aura/client/activation_delegate.h"
26 #include "ui/aura/client/cursor_client_observer.h" 27 #include "ui/aura/client/cursor_client_observer.h"
27 #include "ui/aura/client/focus_change_observer.h" 28 #include "ui/aura/client/focus_change_observer.h"
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 const scoped_refptr<ui::Texture>& texture_to_return); 475 const scoped_refptr<ui::Texture>& texture_to_return);
475 476
476 void SwapDelegatedFrame( 477 void SwapDelegatedFrame(
477 scoped_ptr<cc::DelegatedFrameData> frame_data, 478 scoped_ptr<cc::DelegatedFrameData> frame_data,
478 float frame_device_scale_factor); 479 float frame_device_scale_factor);
479 void SendDelegatedFrameAck(); 480 void SendDelegatedFrameAck();
480 481
481 void SwapSoftwareFrame( 482 void SwapSoftwareFrame(
482 scoped_ptr<cc::SoftwareFrameData> frame_data, 483 scoped_ptr<cc::SoftwareFrameData> frame_data,
483 float frame_device_scale_factor); 484 float frame_device_scale_factor);
484 void SendSoftwareFrameAck(const TransportDIB::Id& id); 485 void SendSoftwareFrameAck(int software_frame_id);
piman 2013/06/05 00:30:55 unsigned int.
slavi 2013/06/06 23:02:47 Done.
485 486
486 BrowserAccessibilityManager* GetOrCreateBrowserAccessibilityManager(); 487 BrowserAccessibilityManager* GetOrCreateBrowserAccessibilityManager();
487 488
488 #if defined(OS_WIN) 489 #if defined(OS_WIN)
489 // Sets the cutout rects from transient windows. These are rectangles that 490 // Sets the cutout rects from transient windows. These are rectangles that
490 // windowed NPAPI plugins shouldn't paint in. Overwrites any previous cutout 491 // windowed NPAPI plugins shouldn't paint in. Overwrites any previous cutout
491 // rects. 492 // rects.
492 void UpdateTransientRects(const std::vector<gfx::Rect>& rects); 493 void UpdateTransientRects(const std::vector<gfx::Rect>& rects);
493 494
494 // Updates the total list of cutout rects, which is the union of transient 495 // 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
552 bool has_composition_text_; 553 bool has_composition_text_;
553 554
554 // Current tooltip text. 555 // Current tooltip text.
555 string16 tooltip_; 556 string16 tooltip_;
556 557
557 std::vector<base::Closure> on_compositing_did_commit_callbacks_; 558 std::vector<base::Closure> on_compositing_did_commit_callbacks_;
558 559
559 // The current frontbuffer texture. 560 // The current frontbuffer texture.
560 scoped_refptr<ui::Texture> current_surface_; 561 scoped_refptr<ui::Texture> current_surface_;
561 562
562 // The current frontbuffer DIB. 563 // The current software frontbuffer.
563 scoped_ptr<TransportDIB> current_dib_; 564 cc::TextureMailbox current_software_frame_;
564
565 // The current DIB id as it was received from the renderer. Note that on
566 // some platforms (e.g. Windows) this is different from current_dib_->id().
567 TransportDIB::Id current_dib_id_;
568 565
569 // The damage in the previously presented buffer. 566 // The damage in the previously presented buffer.
570 SkRegion previous_damage_; 567 SkRegion previous_damage_;
571 568
572 // Pending damage from previous frames that we skipped. 569 // Pending damage from previous frames that we skipped.
573 SkRegion skipped_damage_; 570 SkRegion skipped_damage_;
574 571
575 // The size of the last frame that was swapped (even if we skipped it). 572 // The size of the last frame that was swapped (even if we skipped it).
576 // Used to determine when the skipped_damage_ needs to be reset due to 573 // Used to determine when the skipped_damage_ needs to be reset due to
577 // size changes between front- and backbuffer. 574 // size changes between front- and backbuffer.
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
677 yuv_readback_pipeline_; 674 yuv_readback_pipeline_;
678 675
679 TouchEditingClient* touch_editing_client_; 676 TouchEditingClient* touch_editing_client_;
680 677
681 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); 678 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura);
682 }; 679 };
683 680
684 } // namespace content 681 } // namespace content
685 682
686 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 683 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698